INFO 5100 Study Guide - Quiz Guide: Doubly Linked List, Linked List, Data Element

206 views14 pages

Document Summary

A linear collection of data element given by mean of pointer is called. Linked list is generally considered as an example of. Linked list is generally considered as an example of _________ type of memory allocation. Each node contain minimum two fields one field called data field to store data. In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is. In the worst case, the number of comparisons needed to search a singly linked list of length n for a given element is log 2n n/2 log 2n 1 n. A circularly linked list is used to represent a queue. A single variable p is used to access the queue. To which node should p point such that both the operations enqueue and dequeue can be performed in constant time? rear node front node not possible with a single pointer node next to front.