solver

package
v0.0.0-...-7b7d91c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNUSModsShareableLink(
	assignments map[string]string,
	defaultSlots map[string]map[string][]models.ModuleSlot,
	lessonToSlots map[string][][]models.ModuleSlot,
	req models.OptimiserRequest,
) (string, string)

GenerateNUSModsShareableLink creates a shareable NUSMods link from the assignments

func Solve

Solve is the main HTTP handler that orchestrates the timetable optimization process. It fetches module data, prepares the search space, runs beam search, generates a shareable NUSMods link, and returns the optimized timetable as JSON.

The function applies the Minimum Remaining Values (MRV) heuristic by sorting lessons with fewer class options first, which helps reduce the search space early.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL