wise-saint / Job_Scheduling

Job scheduling : Greedy Algorithm versus Brute Force Algorithm. Comparison of time of complexities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Job_Scheduling

Job scheduling : Greedy Algorithm versus Brute Force Algorithm

image

Greedy Algorithm

Choosing the locally optimal choice available at each stage. And finally, combining the all locally optimal choices selected at each stage to give the globally optimal solution. The algorithm is “greedy” in the sense that each local optimum is found solely by considering what is best at that step, with no consideration of future steps.

Analysis of Greedy Algorithm in Job Scheduling : T(n) = O(n2)

image

Brute Force Algorithm

Enumerating all possible candidates for the solution and checking whether each candidate satisfies the problem’s statement or not. This is basically a problem of permutation and combinatorics.

Analysis of Brute Force Algorithm in Job Scheduling : T(n) = O(n*2n)

image

About

Job scheduling : Greedy Algorithm versus Brute Force Algorithm. Comparison of time of complexities.

License:MIT License


Languages

Language:C++ 76.6%Language:MATLAB 23.4%