2023-08-02 20:57:18 -07:00
..
2023-08-02 20:53:18 -07:00
2023-08-02 20:56:20 -07:00
2023-08-02 20:55:05 -07:00
2023-08-02 20:54:05 -07:00
2023-08-02 20:56:55 -07:00
2023-08-02 20:57:18 -07:00
2023-08-02 20:52:30 -07:00
👾
2023-07-30 21:40:09 -07:00

sorting


  • inversions in a sequence is a pair of elements that are out of order with respect to the ordering relation. a sorting algorithm is a sequence of operations that reduces inversions to zero.

  • a topological sort of a diretect graph is a way of ordering the list of nodes such that if (a, b) is a edge of the graph, then a appears before b. it does not work if a graph has cycles or is not directed.