package acgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Weight.Weight_as_DepthSource

A module that implements weight as the depth of a tree (the number of nodes does not matter. The smaller, the better

Sourcetype w

The type of weight

Sourceval pp : Format.formatter -> w -> unit

pp fmt w pretty prints the weight w on the formatter fmt.

Sourceval init : w

an initial value for the weight (somehow a unit of the ring of weights)

Sourceval is_better : w -> w -> bool

is better w1 w2 returns true if w1 is strictly better (in the sense implemented by the module) than w2

Sourceval is_equal : w -> w -> bool

is better w1 w2 returns true if w1 = w2

Sourceval up : w -> 'a -> w

up w v returns the new weight computed from w and from v (the label of the current node, before moving up in the tree).

Sourceval down : w -> 'a -> w

down w v returns the new weight computed from w and from v (the label of the current node, before moving down in the tree).

Sourceval right : w -> 'a -> w

right w v returns the new weight computed from w and from v (the label parent node of the current node.

Sourcemodule WMap : sig ... end

This module implements a map from weights to lists of computational states of same weight.

OCaml

Innovation. Community. Security.