algorithms

package
v0.0.0-...-07ef3d6 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dijkstra

func Dijkstra[T comparable, O constraints.Ordered](al structures.AdjacencyList[T, O], origin T) map[T]O

func FindIndexInSorted

func FindIndexInSorted[T constraints.Ordered](slc []T, val T) int

FindIndexInSorted will find the index in a sorted slice that you would insert a value into. The value at that index will be greater than or equal to the value you are searching for. If the index is equal to the length of the slice, then all value in the slice are less than the value you are searching for.

Types

This section is empty.

Jump to

Keyboard shortcuts

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