Files
C-Plus-Plus/cpu_scheduling_algorithms
DoGoodCoder 48743d3f3d feat: add non-preemptive SJF scheduling (#2801)
* Create non_preemptive_sjf_scheduling.cpp

* Update non_preemptive_sjf_scheduling.cpp

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>

* Update non_preemptive_sjf_scheduling.cpp

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>

* Update non_preemptive_sjf_scheduling.cpp

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>

* added a vector to store and print the final result

* Update non_preemptive_sjf_scheduling.cpp

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>

* Update non_preemptive_sjf_scheduling.cpp

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>

* Create non_preemptive_sjf_scheduling.cpp

I have done the necessary changes.
The test function will generate 10 different testcases in which it will print  the before and after the SJF scheduling.

@realstealthninja Kindly review the PR and please accept it.

* Delete non_preemptive_sjf_scheduling.cpp

* Update cpu_scheduling_algorithms/non_preemptive_sjf_scheduling.cpp

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>

* Update non_preemptive_sjf_scheduling.cpp

* Update non_preemptive_sjf_scheduling.cpp

* Update cpu_scheduling_algorithms/non_preemptive_sjf_scheduling.cpp

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>

* Update non_preemptive_sjf_scheduling.cpp

* Update non_preemptive_sjf_scheduling.cpp

* clang-format and clang-tidy fixes for 57e670c2

* chore: remove spaces

* Update dynamic_programming/unbounded_0_1_knapsack.cpp

---------

Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-07 05:44:48 +05:30
..