Documentation
¶
Index ¶
Constants ¶
View Source
const BlockLength int = 28
BlockLength is the length of a residency block in days
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Day ¶
Day is the day's number in a given block, the date, and the residents assigned to that Day
func BlockDates ¶
BlockDates returns a slice of days for a block given the block's start date
type Resident ¶
Resident is a resident's full name and their preferred week on call
type Solution ¶
type Solution struct { Filled []Day // List of days with slots filled Pending []Day // List of days with slots not yet filled }
Solution is the 'node' in the tree we are searching for our optimal solution
func FillSchedule ¶
FillSchedule produces a []Day with all of the call slots filled
Click to show internal directories.
Click to hide internal directories.