package knights_tour

  1. Overview
  2. Docs
Solves the 'Knights Tour' and various 'Poyomino' puzzles

Install

dune-project
 Dependency

Authors

Maintainers

Sources

knights_tour-0.0.6.tbz
sha256=770624ae4e35d5a58188a1f25e16730d186df8bc4397827fe9a798ea5ca574e3
sha512=b6c7b2473ddf321afaac6b668f9c6820fb8cc872abc494b69edfdff4101c6b660645837b04801e2917c38dd9f19f79bb0a7b029d59a58ddf1e3a235659bab099

doc/knights_tour.collections/Collections/index.html

Module CollectionsSource

Sourcemodule Clist : sig ... end

A Clist is a 'counted' list. Essentially, its just a list with a counter that tracks its number of elements. This makes it O(1) to get its size.

Sourcemodule Dlist : sig ... end
Sourcemodule Dlist_itf : sig ... end
Sourcemodule Persist : sig ... end
Sourcemodule Treequence : sig ... end

A Treequence is an implementation `Dlist` which keeps its elements in a tree. Every operation that adds elements to Treequence is O(1). Operations that retrieve or remove elements from it will restructure the tree to expose either the front or back of the list for fast access. This allows for efficient accesses on both ends but there is a cost to be paid when switching between accessing from the front/back or the back.

Sourcemodule Util : sig ... end