Skip to content

sunjingsong/the-projects-from-algorithm-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

the-projects-from-algorithm-class(csc501)

project 1 Implement the greedy algorithms for Interval Scheduling and Interval Partitioning using heapsort and priority queue. Both algorithms require sorting, which should be done through heapsort (implement the heapsort algorithm yourself shown on PPT slide 60 of Chapter 2 Basics of Algorithm Analysis), and priority queue should be used to improve the efficiency of the greedy algorithm for Interval Partitioning (PPT slide 29 of Chapter 4 Greedy Algorithms). Also, your program should randomly generate n intervals within time range [sTime;eTime], these three parameters should be received from keyboard. For example, user may want to randomly generate 10 intervals within the time range [5;30], then we know n = 10, sTime = 5 and eTime = 30.

Project 2 Implementing the Yen's algorithm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages