Question: This question comes from Object-Oriented Data Structures Using Java Third Edition. 11. Dummy nodes are used to simplify list processing by eliminating some special cases.
This question comes from Object-Oriented Data Structures Using Java Third Edition. 11. Dummy nodes are used to simplify list processing by eliminating some special cases".
a. What special case is eliminated by a header node in a reference-based linked list?
b. What special case is eliminated by a trailer node in reference-based linked list?
c. Would dummy nodes be useful in implementing a linked stack? That is, would their use eliminate a special case?
d. Would dummy nodes be useful in implementing a linked queue with a reference to both header and trailer elements? e. Would dummy nodes be useful in implementing a circular linked queue?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
