{"title":"Growing Random Uniform d-ary Trees","authors":"Jean-François Marckert","doi":"10.1007/s00026-022-00621-3","DOIUrl":null,"url":null,"abstract":"<div><p>Let <span>\\({{\\mathcal {T}}}_{d}(n)\\)</span> be the set of <i>d</i>-ary rooted trees with <i>n</i> internal nodes. We give a method to construct a sequence <span>\\(( \\textbf{t}_{n},n\\ge 0)\\)</span>, where, for any <span>\\(n\\ge 1\\)</span>, <span>\\( \\textbf{t}_{n}\\)</span> has the uniform distribution in <span>\\({{\\mathcal {T}}}_{d}(n)\\)</span>, and <span>\\( \\textbf{t}_{n}\\)</span> is constructed from <span>\\( \\textbf{t}_{n-1}\\)</span> by the addition of a new node, and a rearrangement of the structure of <span>\\( \\textbf{t}_{n-1}\\)</span>. This method is inspired by Rémy’s algorithm which does this job in the binary case, but it is different from it. This provides a method for the random generation of a uniform <i>d</i>-ary tree in <span>\\({{\\mathcal {T}}}_{d}(n)\\)</span> with a cost linear in <i>n</i>.</p></div>","PeriodicalId":0,"journal":{"name":"","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2022-11-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"","FirstCategoryId":"100","ListUrlMain":"https://link.springer.com/article/10.1007/s00026-022-00621-3","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4
Abstract
Let \({{\mathcal {T}}}_{d}(n)\) be the set of d-ary rooted trees with n internal nodes. We give a method to construct a sequence \(( \textbf{t}_{n},n\ge 0)\), where, for any \(n\ge 1\), \( \textbf{t}_{n}\) has the uniform distribution in \({{\mathcal {T}}}_{d}(n)\), and \( \textbf{t}_{n}\) is constructed from \( \textbf{t}_{n-1}\) by the addition of a new node, and a rearrangement of the structure of \( \textbf{t}_{n-1}\). This method is inspired by Rémy’s algorithm which does this job in the binary case, but it is different from it. This provides a method for the random generation of a uniform d-ary tree in \({{\mathcal {T}}}_{d}(n)\) with a cost linear in n.