-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWISalgorithm.h
More file actions
20 lines (16 loc) · 701 Bytes
/
WISalgorithm.h
File metadata and controls
20 lines (16 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef WISALGORITHM_H
#define WISALGORITHM_H
#include "WISheader.h";
#include <vector>
// === Main Algorithm Functions ===
std::vector<WIS> getOptimalSet(const std::vector<WIS>& jobs);
int findLastNonConflictingJob(const std::vector<WIS>& jobs, int index);
bool isValidWISParameters(int start, int finish, int profit);
bool compareByFinishTime(const WIS& firstJob, const WIS& secondJob);
// === Utility Functions ===
int promptUserForNumIntervals();
std::vector<WIS> generateWISVectorFromUserInput(int intervals);
void printFormattedInputIntervals(const std::vector<WIS>& container);
void printOptimalSet(const std::vector<WIS>& container);
void purgeInputErrors(std::string errorMessage);
#endif