ArticleslgStudy

computer science

List ranking

List ranking is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand List ranking rather than just read about it. In short: In parallel algorithms, the list ranking problem involves determining the position, or rank, of each item in a linked list. Conventionally, this rank denotes the distance of an item to the end of the list; for example, the final item might be assigned a rank of 0, the penultimate item a rank of 1, and so forth.

Key takeaways

  • List ranking belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect List ranking to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of List ranking from memory before moving on to harder problems.

Reference excerpt

In parallel algorithms, the list ranking problem involves determining the position, or rank, of each item in a linked list. Conventionally, this rank denotes the distance of an item to the end of the list; for example, the final item might be assigned a rank of 0, the penultimate item a rank of 1, and so forth. However, the metric is generic and frequently adapted to compute distance from the head instead. Although it is straightforward to solve this problem efficiently on a sequential computer, by traversing the list in order, it is more complicated to solve in parallel. As Anderson & Miller (1990) wrote, the problem was viewed as important in the parallel algorithms community both for its many applications and because solving it led to many important ideas that could be applied in parallel algorithms more generally.

History The list ranking problem was posed by Wyllie (1979), who solved it with a parallel algorithm using logarithmic time and O(n log n) total steps (that is, O(n) processors). Over a sequence of many subsequent papers, this was eventually improved to linearly many steps (O(n/log n) processors), on the most restrictive model of synchronous shared-memory parallel computation, the exclusive read exclusive write PRAM (Vishkin 1984; Cole & Vishkin 1989;Anderson & Miller 1990). This number of steps matches the sequential algorithm.

Related problems List ranking can equivalently be viewed as performing a prefix sum operation on the given list, in which the values to be summed are all equal to one. The list ranking problem can be used to solve many problems on trees via an Euler tour technique, in which one forms a linked list that includes two copies of each edge of the tree, one in each direction, places the nodes of this list into an ordered array using list ranking, and then performs prefix sum computations on the ordered array (Tarjan & Vishkin 1985). For instance, the height of each node in the tree may be computed by an algorithm of this type in which the prefix sum adds 1 for each downward edge and subtracts 1 for each upward edge.

References Anderson, Richard J.; Miller, Gary L. (1990), "A simple randomized parallel algorithm for list-ranking", Information Processing Letters, 33 (5): 269–273, doi:10.1016/0020-0190(90)90196-5. Cole, Richard; Vishkin, Uzi (1989), "Faster optimal parallel prefix sums and list ranking", Information and Computation, 81 (3): 334–352, doi:10.1016/0890-5401(89)90036-9. Tarjan, Robert E.; Vishkin, Uzi (1985), "An efficient parallel biconnectivity algorithm", SIAM Journal on Computing, 14 (4): 862–874, doi:10.1137/0214061, S2CID 7231609. Vishkin, Uzi (1984), "Randomized speed-ups in parallel computation", Proceedings of the sixteenth annual ACM symposium on Theory of computing - STOC '84, pp. 230–239, doi:10.1145/800057.808686, ISBN 0-89791-133-4, S2CID 17475781. Wyllie, J. C. (1979), The Complexity of Parallel Computation, Ph.D. thesis, Department of Computer Science, Cornell University.

Worked examples

Example 1 — a first encounter with List ranking

Start with the simplest possible case. Write down what List ranking claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to List ranking before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about List ranking ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of List ranking

In research
List ranking appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses List ranking in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
List ranking is common in secondary-school and first-year university syllabi. It links to neighbouring topics Parallel computing, so understanding it makes those chapters shorter.
In everyday life
Look for List ranking outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “List ranking” →

How to study List ranking in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what List ranking means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain List ranking out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is List ranking in simple terms?

In parallel algorithms, the list ranking problem involves determining the position, or rank, of each item in a linked list. Conventionally, this rank denotes the distance of an item to the end of the list; for example, the final item might be assigned a rank of 0, the penultimate item a rank of 1…

Why does List ranking matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study List ranking?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on List ranking.

Tags

  • Parallel computing

Keep exploring