%% Created by Maple 2021.0, Windows 10
%% Source Worksheet: Untitled_(2)
%% Generated: Sun Apr 17 21:54:38 EDT 2022
\documentclass{article}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{mathtools}
\usepackage{maple}
\usepackage[utf8]{inputenc}
\usepackage[svgnames]{xcolor}
\usepackage{amsmath}
\usepackage{breqn}
\usepackage{textcomp}
\begin{document}
\lstset{basicstyle=\ttfamily,breaklines=true,columns=flexible}
\pagestyle{empty}
\DefineParaStyle{Maple Bullet Item}
\DefineParaStyle{Maple Heading 1}
\DefineParaStyle{Maple Warning}
\DefineParaStyle{Maple Heading 4}
\DefineParaStyle{Maple Heading 2}
\DefineParaStyle{Maple Heading 3}
\DefineParaStyle{Maple Dash Item}
\DefineParaStyle{Maple Error}
\DefineParaStyle{Maple Title}
\DefineParaStyle{Maple Ordered List 1}
\DefineParaStyle{Maple Text Output}
\DefineParaStyle{Maple Ordered List 2}
\DefineParaStyle{Maple Ordered List 3}
\DefineParaStyle{Maple Normal}
\DefineParaStyle{Maple Ordered List 4}
\DefineParaStyle{Maple Ordered List 5}
\DefineCharStyle{Maple 2D Output}
\DefineCharStyle{Maple 2D Input}
\DefineCharStyle{Maple Maple Input}
\DefineCharStyle{Maple 2D Math}
\DefineCharStyle{Maple Hyperlink}
\begin{Maple Normal}
{$ \displaystyle 
\\
 \mathit{Help23} \coloneqq \boldsymbol{\mathrm{proc}}()\colon \mathit{print} (\mathit{\,GenS(G)\,})\colon \boldsymbol{\mathrm{end}}\colon 
\\
 
\\
 \esnum \mathit{`GenS(G):\,Inputs\,a\,directed\,graph\,(w/o\,cycles)\,and\,outputs\,a\,list\,of\,``generations"`\,} 
\\
 \esnum \mathit{L[1]\,:\,the\,set\,of\,vertices\,that\,are\,sinks\,(no\,childre),\,and\,L[i]\,the\,set\,of\,vertices\,} 
\\
 \esnum \mathit{all\,whose\,children\,are\,in\,L[1]\,union\,L[i-1]\,} 
\\
 \mathit{GenS} \coloneqq \boldsymbol{\mathrm{proc}}(G)\boldsymbol{\mathrm{local}}n ,L ,T ,i ,j ,\mathit{NYD} ,\mathit{AD} ,\mathit{j1} \colon 
\\
 n \coloneqq \mathit{nops} (G)\colon 
\\
 \mathit{NYD} \coloneqq {\{\mathit{seq} (i ,i =1..n)\}}\colon 
\\
 T [1]\coloneqq {\{\}}\colon 
\\
 \boldsymbol{\mathrm{for}}i \boldsymbol{\mathrm{from}}1\boldsymbol{\mathrm{to}}n \boldsymbol{\mathrm{do}}
\\
 \boldsymbol{\mathrm{if}}G [i]={\{\}}\boldsymbol{\mathrm{then}}
\\
 T [1]\coloneqq T [1]\boldsymbol{\mathrm{union}}{\{i \}}\colon 
\\
 \boldsymbol{\mathrm{fi}}\colon 
\\
 \boldsymbol{\mathrm{od}}\colon 
\\
 \mathit{NYD} \coloneqq \mathit{NYD} \boldsymbol{\mathrm{minus}}T [1]\colon 
\\
 \mathit{AD} \coloneqq T [1]\colon 
\\
 \boldsymbol{\mathrm{for}}j \boldsymbol{\mathrm{from}}2\boldsymbol{\mathrm{while}}\mathit{NYD} \neq {\{\}}\boldsymbol{\mathrm{do}}
\\
 T [j]\coloneqq {\{\}}\colon 
\\
 \boldsymbol{\mathrm{for}}i \boldsymbol{\mathrm{in}}\mathit{NYD} \boldsymbol{\mathrm{do}}
\\
 \boldsymbol{\mathrm{if}}G [i]\boldsymbol{\mathrm{minus}}\mathit{AD} ={\{\}}\boldsymbol{\mathrm{then}}
\\
 T [j]\coloneqq T [j]\boldsymbol{\mathrm{union}}{\{i \}}\colon 
\\
 \boldsymbol{\mathrm{fi}}\colon 
\\
 \boldsymbol{\mathrm{od}}\colon 
\\
 \mathit{AD} \coloneqq \mathit{AD} \boldsymbol{\mathrm{union}}T [j]\colon 
\\
 \mathit{NYD} \coloneqq \mathit{NYD} \boldsymbol{\mathrm{minus}}T [j]\colon 
\\
 \boldsymbol{\mathrm{od}}\colon 
\\
 [\mathit{seq} (T [\mathit{j1}],\mathit{j1} =1..j -1)]\colon 
\\
 \boldsymbol{\mathrm{end}}\colon 
\\
 
\\
 
\\
 
\\
 
\\
 \mathit{DZ} \coloneqq [{\{3,4,5\}},{\{3,4,5\}},{\{6\}},{\{\}},{\{\}},{\{\}}];
\\
 \mathit{DZ} \coloneqq [{\{3,4,5\}},{\{3,4,5\}},{\{6\}},{\{\}},{\{\}},{\{\}}]
\\
 
\\
 \mathit{GenS} (\mathit{DZ});
\\
 [{\{4,5,6\}},{\{3\}},{\{1,2\}}]
\\
 
\\
 \esnum \mathit{LaGn(G):\,Same\,as\,LaG(G)\,from\,C22.txt,\,but\,hopefully\,better\,(at\,least\,more\,adaptable\,for\,the\,Centipede\,games)\,} 
\\
 \mathit{LaGn} \coloneqq \boldsymbol{\mathrm{proc}}(G)\boldsymbol{\mathrm{local}}n ,L ,T ,i ,j ,s \colon 
\\
 n \coloneqq \mathit{nops} (G)\colon 
\\
 L \coloneqq \mathit{GenS} (G)\colon 
\\
 \boldsymbol{\mathrm{for}}i \boldsymbol{\mathrm{in}}L [1]\boldsymbol{\mathrm{do}}
\\
 T [i]\coloneqq 0\colon 
\\
 \boldsymbol{\mathrm{od}}\colon 
\\
 
\\
 \boldsymbol{\mathrm{for}}j \boldsymbol{\mathrm{from}}2\boldsymbol{\mathrm{to}}\mathit{nops} (L)\boldsymbol{\mathrm{do}}
\\
 \boldsymbol{\mathrm{for}}i \boldsymbol{\mathrm{in}}L [j]\boldsymbol{\mathrm{do}}
\\
 \boldsymbol{\mathrm{if}}\mathit{member} (0,{\{\mathit{seq} (T [s],s \boldsymbol{\mathrm{in}}G [i])\}})\boldsymbol{\mathrm{then}}
\\
 T [i]\coloneqq 1\colon 
\\
 \boldsymbol{\mathrm{else}}
\\
 T [i]\coloneqq 0\colon 
\\
 \boldsymbol{\mathrm{fi}}\colon 
\\
 \boldsymbol{\mathrm{od}}\colon 
\\
 \boldsymbol{\mathrm{od}}\colon 
\\
 [\mathit{seq} (T [i],i =1..n)]\colon 
\\
 \boldsymbol{\mathrm{end}}\colon 
\\
 
\\
 
\\
 
\\
 
\\
 
\\
 
\\
 
\\
 
\\
 
\\
  $}
\end{Maple Normal}
% \mapleresult
\href{http://www.maplesoft.com/support/help/errors/view.aspx?path=Error,%20illegal%20use%20of%20an%20object%20as%20a%20name}{Error, illegal use of an object as a name}\begin{Maple Error}

\end{Maple Error}
\begin{Maple Normal}

\end{Maple Normal}
\begin{Maple Normal}

\end{Maple Normal}
\begin{Maple Normal}

\end{Maple Normal}
\begin{Maple Normal}
{$ \displaystyle 
\\
 
\\
 
\\
 \mathit{WikiCent} \coloneqq \boldsymbol{\mathrm{proc}}(n)\boldsymbol{\mathrm{local}}i \colon 
\\
 [\mathit{seq} ({\{i ,2i +1\}},i =1..2n),\mathit{seq} ({\{\}},i =1..2n +1)],{\{\mathit{seq} ([i ,{\{i -2n ,\max (i -2n -2,0)\}},i =2n +1..4n])\}}\colon 
\\
 \boldsymbol{\mathrm{end}}\colon  $}
\end{Maple Normal}
\begin{Maple Normal}
{$ \displaystyle \esnum \mathit{\,Ok\,for\,the\,family\,tree\,-\,I\,don't\,think\,I\,can\,go\,very\,far\,but\,let';s\,see:\,}  $}
\end{Maple Normal}
\begin{Maple Normal}
{$ \displaystyle G \coloneqq [{\{6\}},{\{6\}},{\{5\}},{\{5\}},{\{1,2\}},{\{1,2\}},{\{\}},{\{\}}],[\mathit{YiayiaMaryeta} ,\mathit{Grandpa} \mathit{Dad} \mathit{Side} ,\mathit{Radha} ,\mathit{Giorgi} ,\mathit{Hristina} ,\mathit{Christos} ,\mathit{Sophia} ,\mathit{George}] $}
\end{Maple Normal}
% \mapleresult
\begin{dmath}\label{(1)}
G \coloneqq \left[\left\{6\right\},\left\{6\right\},\left\{5\right\},\left\{5\right\},\left\{1,2\right\},\left\{1,2\right\},\varnothing ,\varnothing \right],
\\
\left[\mathit{YiayiaMaryeta} ,\mathit{Grandpa} \mathit{Dad} \mathit{Side} ,\mathit{Radha} ,\mathit{Giorgi} ,\mathit{Hristina} ,
\\
\mathit{Christos} ,\mathit{Sophia} ,\mathit{George} \right]
\end{dmath}
\begin{Maple Normal}
{$ \displaystyle \mathit{GenS} (\%) $}
\end{Maple Normal}
% \mapleresult
\begin{dmath}\label{(2)}
\mathit{GenS} \! 
\\
\left(\left[\left\{6\right\},\left\{6\right\},\left\{5\right\},\left\{5\right\},\left\{1,2\right\},\left\{1,2\right\},\varnothing ,\varnothing \right],
\\
\left[\mathit{YiayiaMaryeta} ,\mathit{Grandpa} \mathit{Dad} \mathit{Side} ,\mathit{Radha} ,\mathit{Giorgi} ,\mathit{Hristina} ,
\\
\mathit{Christos} ,\mathit{Sophia} ,\mathit{George} \right]\right)
\end{dmath}
\begin{Maple Normal}
{$ \displaystyle \esnum \mathit{There\,is\,some\,error\,in\,the\,C23\,that\,I\,can't\,resolve,\,so\,I'll\,do\,the\,winners\,and\,losers\,zmanually.\,I\,am\,a\,loser,\,as\,is\,my\,Sister\,sophia.\,Hence\,both\,my\,parents\,are\,winners,\,and\,my\,grandparents\,must\,then\,be\,losers\,aswell.\,Not\,so\,interesting,\,the\,family\,tree\,is\,not\,that\,crazy.\,But\,I\,should\,look\,into\,it.\,Definitely\,important\,to\,know\,}  $}
\end{Maple Normal}
\begin{Maple Normal}

\end{Maple Normal}
\end{document}
