Search results

Jump to navigation Jump to search
  • data Tree a = Node a [Tree a] dfs :: Graph -> [Vertex] -> [Tree Vertex]
    3 KB (428 words) - 04:08, 12 April 2024
  • Count the leaves of a binary tree
    331 bytes (43 words) - 13:38, 25 December 2016
  • * [http://therning.org/magnus/archives/238 C and Haskell sitting in a tree]
    737 bytes (93 words) - 01:56, 10 December 2020
  • Let us see the tree minimum problem (described above), and let us modularize the magic circular repmin :: Ord a => Tree a -> Tree a
    12 KB (1,607 words) - 10:48, 12 February 2010
  • Write a predicate s_tree(Graph,Tree) to construct (by backtracking) all spanning trees of a given graph. ...le subgraphs, then filters out those that meet the criteria for a spanning tree:
    2 KB (281 words) - 03:49, 10 January 2017
  • ...stating that Functional Programming was devised by a, "... load of binary tree Huggers!".
    700 bytes (109 words) - 04:19, 25 January 2006
  • An example tree: <div style="border-bottom:1px solid #eee">Count the leaves of a binary tree. <span style="float:right"><small>[[99 questions/Solutions/61|Solutions]]</
    12 KB (1,696 words) - 05:35, 11 June 2023
  • After running the program a computation tree is constructed and displayed in a web browser. ...f your program misbehaves, you can judge the computation statements in the tree as 'right' or 'wrong' according to your intention. When enough statements a
    6 KB (896 words) - 09:12, 22 December 2015
  • Anyway the puzzle goes like this: Given a tree with N nodes (and hence N-1 edges). Find a way to enumerate the nodes from ...s a numbering scheme for a given tree. What is the solution for the larger tree pictured below?
    3 KB (420 words) - 22:52, 7 June 2017
  • data Tree a = Leaf | Bin a (Tree a) (Tree a) ...length of a tree (or its size, if you want), by recursively traversing the tree and counting the number of elements. Generic programming allows to define a
    4 KB (598 words) - 02:44, 13 February 2021
  • rather than the data itself. For example, consider a simple binary tree type: data Tree a = Fork (Tree a) (Tree a) | Leaf a
    10 KB (1,623 words) - 21:10, 26 June 2023
  • -- The dictionary is stored in a denary tree. A node has sub-trees, a leaf -- Given an existing tree, create a new tree to be its parent. Put the
    12 KB (1,746 words) - 05:55, 21 February 2010
  • We give an example implementation of treaps (tree heaps) in Haskell. The emphasis is partly on treaps, partly on the System.R One such representation is the binary search tree (In much literature,
    17 KB (2,987 words) - 01:08, 10 May 2008
  • Consider showing a binary tree. If the tree is large, you end up with a pretty large left association for the left subt
    3 KB (421 words) - 16:40, 1 August 2018
  • treeDisplay :: Sourceable a => Source (Tree a) -> UI (TreeSources a) aTree <- title "Family Tree" $ treeDisplay (liftA asTree db)
    3 KB (480 words) - 12:31, 18 August 2007
  • The following constructs a tree of infinite depth and width: import Data.Tree
    4 KB (476 words) - 22:10, 27 November 2007
  • ...ravis-ci.org/diagrams/dual-tree https://secure.travis-ci.org/diagrams/dual-tree.png]
    4 KB (510 words) - 01:42, 10 November 2013
  • ...es a tree and returns the <hask>Loc</hask> corresponding to the top of the tree. Thus a typical call to <hask>traverse</hask> might look like: getStruct = modifyStruct id -- works because modifyTree returns the 'new' tree
    5 KB (846 words) - 01:00, 9 October 2006
  • ...tree [...] since any number of subtrees may be extracted from an infinite tree). In practice, these values will be determined at run time (when used as ar main' :: Tree Exterior -> ...
    8 KB (1,236 words) - 12:36, 1 January 2024
  • An efficient solution, which takes the fact that a tree with an even number of nodes can't be symmetric into consideration:
    666 bytes (91 words) - 13:37, 25 December 2016

View (previous 20 | next 20) (20 | 50 | 100 | 250 | 500)