Professional KnowledgeHardIBPS SO IT
In a network using Dijkstra's algorithm the time complexity with a binary heap on V vertices and E edges is:
- A. O((V+E) log V)
- B. O(V^3)
- C. O(VE)
- D. O(E)
Correct answer: A. O((V+E) log V)
Heap-based Dijkstra runs in O((V+E) log V).
Practise more IT Officer Professional Knowledge (IBPS SO) questionsIT Officer Professional Knowledge (IBPS SO): notes and key points
More IT Officer Professional Knowledge (IBPS SO) questions
- For the same bursts 24, 3, 3 arriving at t=0, SJF (non-preemptive) average waiting time is:
- Same RR quantum 4, bursts 10, 5, 8. Average turnaround time is (P1 ends at 23, P3 at 21):
- In the SRTF example above (P1:0/8, P2:1/4, P3:2/2, P4:3/1), the completion time of P1 is:
- A system has 3 processes sharing 4 identical resource units, each needing at most 2 units. The system is:
- Which of the four conditions for deadlock is broken by requiring processes to request all resources at once?
- Producer-consumer with a bounded buffer of N slots uses semaphores. Initial values are: