Professional Documents
Culture Documents
Assignment 4: Design and Analysis of Algorithm (CSC645)
Assignment 4: Design and Analysis of Algorithm (CSC645)
Assignment 4: Design and Analysis of Algorithm (CSC645)
Assignment 4
Question 4.1
Explain how brute force idea can be applied in closest pair of point problem. Then, find
the shortest pair of point for the following list of points using brute force approach. [10
marks]
Question 4.2
Given the following list of integers, sort them using quicksort algorithm to ascending
order. Trace the changes in the array. [10 marks]
Question 4.3
Solve the following graph using Greedy ADT Minimum Spanning Tree. [10 marks]
Question 4.4
Solve the following graph using Greedy ADT: Single-Source Shortest Path. [10 marks]