Research Article

A Binary Cuckoo Search Big Data Algorithm Applied to Large-Scale Crew Scheduling Problems

Algorithm 4

Repair algorithm.
1: Function Repair(Sin)
2: Input Input solution Sin
3: Output The Repair solution Sout
4: SSin
5: while needRepair(S) == True do
6:  S.append (Heuristic(S))
7: end while
8: S ← repeatedItem(S)
9: SoutS
10: returnSout