Midterm Questions
Q1: Suppose you are given a flow network N and a maximum flow f for N. Suppose d, a positive integer, is added to the capacity of one edge of N.
1. Give an efficient algorithm to compute a maximum flow for the new network.
2. What is the worst case time complexity of your algorithm?
______________________________________________________________________________
Q2 . In a heap, the heights of the left and right subtrees of a node differ by atmost 1.
2. The best case running time of Bubble Sort is O(n).
3. The best case running time of Merge Sort is O(n).
4. The worst case complexity of Quick Sort is O(n2).
5. The worst case complexity of AVL Tree insertion is O(n)
5 years ago
10
Answer(0)
other Questions(10)
- Class 2 Unit 2 DISCUSSION
- term paper
- Database Development
- Discussion For HR Managment
- answer
- Assignment 4
- ITC203 Assignment 2 - Marked out of 100. This assignment also revolves around the ‘Barchester City Council Car Park System’ (Car Park System) Case Study, which may be found as a separate PDF document in the Resources section of the subject Interact site.
- WEEK 4 TROUBLE Shooting
- please I need someone to help me in this
- finmgmt8