EBK DATA STRUCTURES AND ALGORITHMS IN C
EBK DATA STRUCTURES AND ALGORITHMS IN C
4th Edition
ISBN: 9781285415017
Author: DROZDEK
Publisher: YUZU
bartleby

Concept explainers

Question
Book Icon
Chapter 3, Problem 20E
Program Plan Intro

Techniques for rearranging nodes in the List:

  • While ordering the records in the self-organizing list, normally the access probabilities of the records aren’t well known before.
  • This issue led the researchers to develop several heuristics to estimate optimal behaviour.
  • Some basic approaches used for reordering the records in the self-organizing list are given below.
    • Move–to–front method (MFT)
    • Transpose method.
    • Count method.
    • Ordering method.

Move–to–front method (MFT):

  • After the required record is sited, keep that at the head of the list.

Transpose method:

  • After the required record is sited, interchange that with its precursor.

Count method:

  • Ordering the self-organizing list by number of times the records are being processed.

Ordering method:

  • Ordering the self-organizing list by using definite criteria for information under analysis.

Explanation of Solution

(b) Cases in which the methods need an exhaustive search of the lists for every search:

  • A list “L” is searched exhaustively by the move to front method while searching for its last record. This needs the data to be composed in the same sequences of records as in the list “L”, however in the reverse order. For instance, if the list

    L = (p x r y) then the data sequence has to be (y r x p y r x p y r x p y…)...

Blurred answer
Students have asked these similar questions
Given a scenario where you need to efficiently insert elements at the beginning of a list, which type of linked list would be most suitable? Explain why.
Write the code to delete a node in the middle of a list implemented as a linked list with the dummy node (see Exercise 3). Compare your answer with the answer to Exercise 3. Are they the same? What do you conclude? Does the dummy node simplify the operation on the list? How?
What is the difference between a singly-linked list and a doubly-linked list? In what situation would you use a singly-linked list over a doubly-linked list? In what situation would you use a doubly-linked list over a singly-linked list?   If a node is in a linked list with N nodes, how many nodes will be traversed during a search for the node? Explain the best- and worst-case search scenarios. Explain why a singly-linked list defines a RemoveAfter() function, while a doubly-linked list defines a Remove() function. Could a RemoveAfter() function also be defined for a doubly-linked list? Explain why or why not. Could a Remove() function also be defined for a singly-linked list? Explain why or why not.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education