Analysis of Algorithms and Computational Complexity Questions and Answers
Practice ModeShowing 10 of 239 questions
Q171
Breadth-first traversal (BFS) is a method to traverse
Answer: Option A
Q172
If a binary tree traversed in inorder, then numbers of the node are printed in ____ order
Answer: Option B
Q173
A list node representing an arc of a graph requires how many fields ?
Answer: Option D
Q174
Identity the correct statements about DFS traversal.
I. It can be used to determine whether a graph is acyclic or not.
II. It identify the connected component of an undirected graph
III. traverses a single path of the graph until it visits a node with no successor.
Answer: Option A
Q175
Its appropriate to represent a queue as
Answer: Option B
Q176
Given two statements
(i) Insertion of an element should be done at the last node in a circular list.
(ii) Deletion of an element should be done at the last node of the circular list.
Answer: Option C
Q177
To insert a node in a circular list at rear position, it should be inserted at ____ of the queue
Answer: Option A
Q178
To free which of the following list traversing through the entire list is not necessary?
Answer: Option D
Q179
Graphs can be implemented using
(i) arrays
(ii) linked list
(iii) stack
(iv)queue
Answer: Option A
Q180
A header node to represent a graph node requires how many fields ?
Answer: Option D