πŸ“Š High Performance Computing
Q. Breadth First Search is equivalent to which of the traversal in the Binary Trees?
  • (A) pre-order traversal
  • (B) post-order traversal
  • (C) level-order traversal
  • (D) in-order traversal
πŸ’¬ Discuss
βœ… Correct Answer: (C) level-order traversal
πŸ“Š High Performance Computing
Q. Time Complexity of Breadth First Search is? (V – number of vertices, E – number of edges)
  • (A) o(v + e)
  • (B) o(v)
  • (C) o(e)
  • (D) o(v*e)
πŸ’¬ Discuss
βœ… Correct Answer: (A) o(v + e)
πŸ“Š High Performance Computing
Q. Which of the following is not an application of Breadth First Search?
  • (A) when the graph is a binary tree
  • (B) when the graph is a linked list
  • (C) when the graph is a n-ary tree
  • (D) when the graph is a ternary tree
πŸ’¬ Discuss
βœ… Correct Answer: (B) when the graph is a linked list
πŸ“Š High Performance Computing
Q. In BFS, how many times a node is visited?
  • (A) once
  • (B) twice
  • (C) equivalent to number of indegree of the node
  • (D) thrice
πŸ’¬ Discuss
βœ… Correct Answer: (C) equivalent to number of indegree of the node
πŸ“Š High Performance Computing
Q. Which of the following is not a stable sorting algorithm in its typical implementation.
  • (A) insertion sort
  • (B) merge sort
  • (C) quick sort
  • (D) bubble sort
πŸ’¬ Discuss
βœ… Correct Answer: (C) quick sort
πŸ“Š High Performance Computing
Q. Which of the following is not true about comparison based sorting algorithms?
  • (A) the minimum possible time complexity of a comparison based sorting algorithm is o(nlogn) for a random input array
  • (B) any comparison based sorting algorithm can be made stable by using position as a criteria when two elements are compared
  • (C) counting sort is not a comparison based sorting algortihm
  • (D) heap sort is not a comparison based sorting algorithm.
πŸ’¬ Discuss
βœ… Correct Answer: (D) heap sort is not a comparison based sorting algorithm.
πŸ“Š High Performance Computing
Q. In a broadcast and reduction on a balanced binary tree reduction is done in ______
  • (A) recursive order
  • (B) straight order
  • (C) vertical order
  • (D) parallel order
πŸ’¬ Discuss
βœ… Correct Answer: (A) recursive order

Jump to