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 22E
Program Plan Intro

Self-organizing list:

  • A self-organizing list, a kind of list which reorders its records depending on few heuristic self-organizing approaches to increase the average access time.
  • The main goal of this is to increase the efficiency of the linear search by moving the most often accessed records to the head of the list.
  • A self-organizing list attains a best case of constant time (nearly) for accessing records.

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) Efficiency of the methods when the list is implemented as a singly linked list:

  • When the list is implemented as a singly linked list, a record node could be separated from the middle of the list; therefore, either two pointers are required when traversing the list, one pointer is used for the present node and the other pointer is used for the preceding node...

Explanation of Solution

(c) Efficiency of the methods when the list is implemented as a doubly linked list:

  • When the list is implemented as a doubly l...

Blurred answer
Students have asked these similar questions
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?
Do you know what the difference is between a single-linked list and a doubly-linked list? When is it better to use a singly-linked list rather than a doubly-linked list?When is it better to use a doubly-linked list rather than a singly-linked list? In a search for a node that is part of a linked list with N elements, how many nodes will be visited and how long will it take? Describe the best- and worst-case scenarios that may occur during a search operation.Explain why the RemoveAfter() function is present in a singly-linked list yet the Remove() function is present in a doubly-linked list.Could the RemoveAfter() function be extended to include a doubly-linked list as well as a simple list? Explain why you believe this is the case, or why you believe it is not the case.What are the chances of implementing a Remove() function for a singly-linked list? Explain why you believe this is the case, or why you believe it is not the case.
write a code in modules and also with main class to implement the operation on linked list.. (searching , traversing , updating , and inserting.) insertion will be In empty list, In front of list, In the middle of list, at the end of list. The code should be in java language and also with simple coding and explanation.
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