// Copyright 2013, University of Freiburg, // Chair of Algorithms and Data Structures. // Author: Hannah Bast . // NOTE: this is a code design suggestion in pseudo-code. It is not supposed to // be compilable in any language. You have to translate it to Java or C++ // yourself. The purpose of this file is to suggest a basic design and settle // questions you might have on what exactly your code is supossed to do. // An entry of the inverted lists, consisting of a document id, and a score. class Posting { // PUBLIC MEMBERS int documentId; float score; }