34
views
0
recommends
+1 Recommend
0 collections
    4
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Boltzmann samplers for random generation of lambda terms

      Preprint

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          Randomly generating structured objects is important in testing and optimizing functional programs, whereas generating random \('l\)-terms is more specifically needed for testing and optimizing compilers. For that a tool called QuickCheck has been proposed, but in this tool the control of the random generation is left to the programmer. Ten years ago, a method called Boltzmann samplers has been proposed to generate combinatorial structures. In this paper, we show how Boltzmann samplers can be developed to generate lambda-terms, but also other data structures like trees. These samplers rely on a critical value which parameters the main random selector and which is exhibited here with explanations on how it is computed. Haskell programs are proposed to show how samplers are actually implemented.

          Related collections

          Most cited references7

          • Record: found
          • Abstract: not found
          • Conference Proceedings: not found

          Finding and understanding bugs in C compilers

            Bookmark
            • Record: found
            • Abstract: not found
            • Article: not found

            Un procédé itératif de dénombrement d'arbres binaires et son application à leur génération aléatoire

              Bookmark
              • Record: found
              • Abstract: not found
              • Article: not found

              Counting and generating lambda terms

                Bookmark

                Author and article information

                Journal
                2014-04-15
                2014-04-28
                Article
                1404.3875
                9877f05b-97a5-4815-a4c5-846ddc67abcd

                http://arxiv.org/licenses/nonexclusive-distrib/1.0/

                History
                Custom metadata
                cs.DS cs.LO cs.PL
                ccsd

                Theoretical computer science,Data structures & Algorithms,Programming languages

                Comments

                Comment on this article