Ant System on the travelling salesman problem, run on the CPU. Click the canvas to add cities while the colony runs. Show the nearest-neighbor tour as a baseline. Tick ROADMAP.
104 lines
1.9 KiB
TypeScript
104 lines
1.9 KiB
TypeScript
export class RouterConstants {
|
|
|
|
static readonly ABOUT = {
|
|
PATH: 'about',
|
|
LINK: '/about',
|
|
};
|
|
|
|
static readonly PROJECTS = {
|
|
PATH: 'projects',
|
|
LINK: '/projects',
|
|
};
|
|
|
|
static readonly ALGORITHMS = {
|
|
PATH: 'algorithms',
|
|
LINK: '/algorithms',
|
|
};
|
|
|
|
static readonly PATHFINDING = {
|
|
PATH: 'algorithms/pathfinding',
|
|
LINK: '/algorithms/pathfinding',
|
|
};
|
|
|
|
static readonly SORTING = {
|
|
PATH: 'algorithms/sorting',
|
|
LINK: '/algorithms/sorting',
|
|
};
|
|
|
|
static readonly GOL = {
|
|
PATH: 'algorithms/gol',
|
|
LINK: '/algorithms/gol',
|
|
};
|
|
|
|
static readonly LABYRINTH = {
|
|
PATH: 'algorithms/labyrinth',
|
|
LINK: '/algorithms/labyrinth',
|
|
};
|
|
|
|
static readonly FRACTAL = {
|
|
PATH: 'algorithms/fractal',
|
|
LINK: '/algorithms/fractal',
|
|
};
|
|
|
|
static readonly FRACTAL3d = {
|
|
PATH: 'algorithms/fractal3d',
|
|
LINK: '/algorithms/fractal3d',
|
|
};
|
|
|
|
static readonly PENDULUM = {
|
|
PATH: 'algorithms/pendulum',
|
|
LINK: '/algorithms/pendulum',
|
|
};
|
|
|
|
static readonly CLOTH = {
|
|
PATH: 'algorithms/cloth',
|
|
LINK: '/algorithms/cloth',
|
|
};
|
|
|
|
static readonly BOIDS = {
|
|
PATH: 'algorithms/boids',
|
|
LINK: '/algorithms/boids',
|
|
};
|
|
|
|
static readonly PHYSARUM = {
|
|
PATH: 'algorithms/physarum',
|
|
LINK: '/algorithms/physarum',
|
|
};
|
|
|
|
static readonly GRAY_SCOTT = {
|
|
PATH: 'algorithms/gray-scott',
|
|
LINK: '/algorithms/gray-scott',
|
|
};
|
|
|
|
static readonly ANT_COLONY = {
|
|
PATH: 'algorithms/ant-colony',
|
|
LINK: '/algorithms/ant-colony',
|
|
};
|
|
|
|
static readonly FOUR_COLOR = {
|
|
PATH: 'algorithms/four_color',
|
|
LINK: '/algorithms/four_color',
|
|
};
|
|
|
|
static readonly FOURIER = {
|
|
PATH: 'algorithms/fourier',
|
|
LINK: '/algorithms/fourier',
|
|
};
|
|
|
|
static readonly IMPRINT = {
|
|
PATH: 'imprint',
|
|
LINK: '/imprint',
|
|
};
|
|
|
|
static readonly PRIVACY = {
|
|
PATH: 'privacy',
|
|
LINK: '/privacy',
|
|
};
|
|
|
|
static readonly STOPWATCH = {
|
|
PATH: 'stopwatch',
|
|
LINK: '/stopwatch',
|
|
};
|
|
}
|
|
|