Tree Graph Representation Of Hamiltonian Paths

3y ago
35 Views
2 Downloads
1.08 MB
14 Pages
Last View : 18d ago
Last Download : 3m ago
Upload by : Bennett Almond
Transcription

Computers Math. Applic. Vol. 27, No. 5, pp. 101-114, 1994089%1221(94)E0009-9Copyright@1994Elsevier Science LtdPrinted in Great Britain. All rights reserved0898-1221/94 6.00 0.00Tree Graph Representationof Hamiltonian PathsH. C. REGGINIAcademia National de Ciencias Exactas, F&asBuenos Aires, Argentinay Naturales(Received and accepted October 1992)Abstract-Pathsalong faces of a polyhedron can be assimilated to paths along the branches ofa tree graph. This paper shows the pruned trees corresponding to all Hamiltonian paths of regularpolyhedraenumerated by the author in a previous paper [l].INTRODUCTIONIn an earlier paper [l], I have deduced the numbers of Hamiltonianface paths for each regularpolyhedron.A Hamiltonianpath of faces of a polyhedronresults when an itinerary is followedalong all its faces without repeating any of them. As one follows a Hamiltonianface path, eachface is touched once, and only once, without entering any one face twice. Similarly, a Hamiltonianpath of vertices of a polyhedron results when we follow an itinerary along all its vertices, withoutrepeatingany of them. Following a Hamiltonianvertex path, each vertex is touched once, andonly once, without visiting any vertex twice.The numbers of Hamiltonianface paths for each of the five Platonicfaces are given, are shown in the table below.bodies,when two initialDodecahedronIn the same paper, I have discussed a method for random generationof regular polyhedraand its relation with the occurrence of Hamiltonianpaths. Being N the number of faces of agiven polyhedron,theoreticalvalues of the probabilityof generatinga Hamiltonianpath in atrip of N legs, can be deduced dividing the correspondingnumber of Hamiltonianpaths by thecorrespondingnumber of all possible itineraries of N legs. That number is deduced taking intoaccount the fact that we begin the itinerary going from face 1 to face 2; once on face 2, we canchoose any one of its M sides to attach a new face to it. The same situationarises in the nextface, and so on, until the (N - l)th face. Consequently,the total number of all possible itinerariesis equal to the number of sides of each face elevated to the power (number of faces minus 2), thatis to McNF2). If returning to the last selected face is forbidden, i.e., if the condition of no-retreathAIds, the total number of all possible itineraries is equal to (M - 1)N-2.Typeset101by A&-T)@

H. C. REGGINI102The total number of all possible itineraries,given two initial faces and under no retreat,areshown below.miSo, the correspondingprobabilitiesto generateat random a Hamiltonianroute, given twoinitial faces and under no retreat, are shown below.GENERATORLISTS OF A POLYHEDRONPaths along faces were described in same paper using an intrinsic geometrical approach, following an idea similar to the one used by Hamilton in his paper [2] (see also [l]). For each path, wemake up a list that we call the generator list. The elements of a generator list are the necessarysuccessive values of the number of movements along the sides of a present face to define theposition of the next face.A generator list describes a way of constructing a polyhedron and also a Hamiltonian path.Its elements define, step by step, the process that leads to the assemblage of a form and theyintrinsically represent the corresponding geometrical structure.In the same paper, we used the information given by the generator list to develop a methodfor building up regular polyhedra. The method is based on the successive generation of faces,each one forming with the precedent one the same external dihedral angle that in the polyhedronunder study. Each new added face is built alongside the precedent, selecting one of its edgesaccording to the digits of the generator list.We call present face the face just added; next or new face, the face to be built afterwards;and with previous or past face, we designate the face built before the present one. The selectionof a side of the present face is made in correspondence with the digits 0, 1, . . , (M - 2), beingA4 the number of sides of the face. For the value 0 of the digit, the new face is attached to theside that follows, in the counterclock-wise sense, the side common to the present face and theprevious or past face. The other values indicate the other sides following the counterclock-wisesense. In that way, the series of the values of the digits of the generator list controls the processof generation defining to which edge of a face the new face should be added. In summary, eachdigit of a generator list indicates sequentially, in the counterclock-wise sense and for each face,the edge of the present face adjacent to the next face.The polyhedron is thus shaped by a sum of faces that are added in succession until the construction of the complete polyhedron is finished.The elements of a generator list can be regarded as an intrinsic identifier number of a path,having 2 as base (binary number) for the tetrahedron, the octahedron and the icosahedron, 3 asbase (ternary number) for the cube, and 4 as a base (quaternary number) for the dodecahedron.TREEREPRESENTATIONOF GENERATORLISTSA generator list can be considered as a record of a journey describing the manner in which thefaces of a polyhedron have been visited. Journeys can be represented by means of tree graphs asexplained below.

Tree Graph Representation103For example, for the tetrahedron as well as for the octahedron and the icosahedron, the treegraph is a binay tree, a tree in which each branch sprouts only two branches. Each branchconsists of a straight line with two more branches (sub-branches)at its end.We can assume-followinga notation similar to Hamilton nomenclature-thata number 0 ina generator list means turning left at a node; a number 1, means turning right. As each nodeis the departing point of two branches, if one approaches a node along one branch and retracingone’s route along the previous branch is forbidden, we have the choice of either turning left (0)or turning right (1). Thus, any route in the tree graph can be represented, departing from aninitial trunk, as a succession of O’s and l’s, following the same convention we have adopted forthe path generator lists, excluding the first zero (see [l] for further details).The following Logo computer procedure draws a binary tree, in which each branch sprouts twobranches. It is assumed that the length of each sprouted branch is reduced by a factor withregards to that of the parent one. Each branch consists of a straight with two more branches(sub-branches)at its end. The branching angle is ang. Input variable level measures the numberof branching processes.to arbo12 :long :factor :level :angif (:level 1) 0 [stop]forward :longleft :angarbo12 :long * :factor :factor :level - 1 :angright :ang * 2arbol2 :long * :factor :factor :level - 1 :angleft :angback :longendIn the following paragraphs, tree graphs corresponding to face paths of the five regular polyhedra are shown. For each polyhedron, the complete tree graph of all possible branches (itineraries)is first displayed. Secondly, the tree graph with the branches related to Hamiltonian itineraries(pruned tree graph) is displayed. The probability values mentioned above measure the relation between the number of itineraries in the pruned tree graph and the number of all possibleitineraries in the complete tree graph.TREEREPRESENTATIONOF GENERATORFOR THE TETRAHEDRONLISTSThe number of all different face paths departing from two initial faces, with the condition ofno-retreat is 22. All those paths can be associated to the 22 extreme branches or itineraries fromtrunk to tips of a binary tree of level 2, as it is shown in Figure 1.Figure 1

H. C. REGGINI104The number of Hamiltonian face paths-eachface is visited once, without entering any facetwice-is2 for the tetrahedron. The generator lists-orderedby intrinsic number-are:Tetrahedron0110The Hamiltonian path generator lists define associated itineraries or tips in the complete binarytree representation (Figure 2).Figure 2The tree routes defined by the Hamilton path generator lists are indicated by marks at thecorresponding tips in the above drawing. Or, we can just only draw the branches correspondingto Hamiltonian paths as represented in Figure 3.Figure 3.TREEREPRESENTATIONOF GENERATORFOR THE OCTAHEDRONLISTSThe number of all different face paths, departing from two initial faces with the condition ofno-retreat is 26. All those paths can be associated to the 26 extreme branches or itineraries fromtrunk to tips of a binary tree of level 6 (Figure 4).Figure 4.

Tree Graph RepresentationThenumbertwice-isof Hamiltonian6 for the octahedron.face paths-eachThe generator105face is visitedlists---orderedonce, withoutby intrinsicenteringany 10011110100The Hamiltoniantree representationpath generator(see Figurelists define associateditinerariesor tips in the completebinary5).Figure 5.The tree routes defined by the Hamilton path generator lists are indicated by marks at corresponding tips in the above drawing. Only the routes correspondingto Hamilton paths are drawnin Figure 6.Figure 6.TREE REPRESENTATIONOF GENERATORFOR THE ICOSAHEDRONLISTSThe number of all different face paths, departingfrom two initial faces with the condition ofno-retreatis 2’*. All those paths can be associated to the 218 extreme branches or itinerariesfrom trunk to tips of a binary tree of level 18 (see Figures 7 and 8).u\HzA27:5-H

H. C. REGGINI106ICOSAHRDRONFigure 7. Incompletebranching levels.drawing with only with 9Figure 8. Complete drawing with all 18 branchinglevels.The number of Hamiltonian face paths-eachface is visited once, without entering any facetwice-is 54 for the icosahedron. The generator lists-orderedby intrinsic 1011100101101000111010100011111011010101001000The Hamiltonian path generator lists define associated itineraries or tips in the complete binarytree representation.Figure 9.TREEThe tree routes defined by the Hamilton path generator lists are drawn inREPRESENTATIONOF GENERATORFOR THE CUBELISTSThe tree representation for the cube corresponds to a ternary tree, one in which each branchsprouts three branches. For the drawings, it is assumed that the length of each sprouted branchis reduced by a factor with regards that of the parent one. Each branch consists of a straightwith three more branches (sub-branches) at its end. On the following procedure, the branchingangle is ang and the input variable level measures the number of branching processes.

Tree GraphRepresentationFigureto arbo13 :long :factor1079:level :angif (:level 1) 0 [stop]forward:longleft :angarbo13 :long * :factor:factor :level - 1 :angright :angarbo13 :long * :factor:factor:level - 1 :ang:factor:level - 1 :angright :angarbo13 :long * :factorleft :angback :longendbranches.Hence, if we approachleft,onecorrespondingto takinga node by one branch, the routes open to us are one to thethe middle branch, and one to the right. We can denote each route with the digits 0, 1 and2. The number of all different face paths, departing from two initial faces with the condition ofno-retreat-thatis, retracing a path along the previous face is forbidden, so that a new face mustnecessarilybe chosen-is34 . All those paths can be associated to the 34 extreme branches orFor the cube tree,itinerariesfrom trunkat each node thereare threedepartingto tips of a ternarytree of level 4 (see Figure10).CUBEFigure10.The number of Hamiltonianface paths-eachface is visited once, without enteringtwice-is10 for the cube. The generator lists-orderedby intrinsic number-are:any face

H. 022110TheternaryHamiltonianpathtree representationgeneratorlists define(see Figure 11).associateditinerariesor tipsin thecompleteFigure 11.The tree routes defined by the Hamilton path generator lists are indicated by marks at corresponding tips on the above drawing. In next figure, only the branches correspondingto Hamiltonian paths are drawn (see Figure 12).Figure 12.TREEREPRESENTATIONOF GENERATORFORTHEDODECAHEDRONThe tree representationfor the dodecahedroncorrespondseach branch sprouts four branches.For the drawings,itsprouted branch is reduced by a factor with regards that ofof a straight with four more branches (sub-branches)at itsa quaternarytree; the branchingangle is ang and the inputof branchingprocesses.to arbo14 :long :factor :level :angif (:level 1) 0 [stop]forward :longLISTSto a quaternary tree: a tree in whichis assumed that the length of eachthe parent one. Each branch consistsend. The following procedure, drawsvariable level measures the number

Tree Graph Representation109left :ang / 2arbol4:long * :factor:factor:level - 1 :ang:factor:level - 1 :ang:factor:level - 1 :ang:factor:level - 1 :angleft :angarbo14 :long * :factorright :ang * 2arbo14 :long * :factorright :angarbo14 :long * :factorleft (:ang :ang / 2)back :longendFor the dodecahedrontree,at each nodethereare four departingbranches.Hence, if wethere are four routes open to us. Using 0 and 3 for the operationsof turning first left and first right, we can define 1 and 2 to denote the operations of turning secondon the left and second on the right at a node.approacha node by one branch,The numberno-retreat-thatnecessarilyitinerariesof all different face paths, departingfrom two initial faces with the conditionofis, retracing a path along the previous face is forbidden, so that a new face mustbe chosen-is4 lo . All those paths can be associated to the 41 extreme branchesfrom trunk to tips of a quaternarytree of level 10 (see Figures 13 and 14).orDODECAHRDRONFigure 13. Incompleteing levels.drawing with only 5 branch-Figure 14. Completelevels.drawing with all 10 branchingThe number of Hamiltonianface paths-eachface is visited once, withouttwice-is1264 for the dodecahedron.The generator lists-orderedby 301112123100111213032. . . . . . . . . . . . . . 0entering any facenumber-are:

110H. C. REGGINI(The completelist, size 1264, is given in the Appendix.)lists define associateditinerariesThe Hamiltonianor tips in the complete quaternaryfollowing figure, only the branches corresponding to Hamiltonianpath generatortree representation.In thepaths are drawn.Figure 15.CONCLUSIONTree graphs corresponding to face paths of the five regular polyhedra offer a new way ofvisualizing Hamilton’s problem. For each polyhedron, we have first drawn the figure of thecomplete tree graph, of all possible branches (itineraries); then, the tree graph with the branchescorresponding to Hamiltonian itineraries (pruned tree graph). This gives a graphic measure of therelation between the number of Hamiltonian itineraries and the number of all possible itineraries.The following table summarizes our ry18262,14454DodecahedronIcosahedronlA: PolyhedronlB: ‘Ike0.50.12350.093750.0012050.0002060type0 C: Tree levellD: Number of tips of completelE: Number of tips of pruned treetreelF: Densities of pruned trees in relation to complete treesAPPENDIXHAMILTONIANCOMPLETEPATHSLISTINGOF THE DODECAHEDRONOF THE 223

.ationTreeGraph 11010303022230301212223030121223003012123030303

The numbers of Hamiltonian face paths for each of the five Platonic bodies, when two initial faces are given, are shown in the table below. Dodecahedron In the same paper, I have discussed a method for random generation of regular polyhedra and its relation with the occurrence of Hamiltonian paths.

Related Documents:

exactly one Hamiltonian cycle is called uniquely Hamiltonian. The highly symmetric Platonic graphs admit many Hamiltonian cycles, but in some cases these cycles are very similar. Call a Platonic graph topologically uniquely Hamiltonian if all Hamiltonian cycles are equivalent under rotation and reflection. It is well known that the dodecahe .

Civic Style - Marker Symbols Ü Star 4 û Street Light 1 ú Street Light 2 ý Tag g Taxi Æb Train Station Þ Tree 1 òñðTree 2 õôóTree 3 Ý Tree 4 d Truck ëWreck Tree, Columnar Tree, Columnar Trunk Tree, Columnar Crown @ Tree, Vase-Shaped A Tree, Vase-Shaped Trunk B Tree, Vase-Shaped Crown C Tree, Conical D Tree, Conical Trunk E Tree, Conical Crown F Tree, Globe-Shaped G Tree, Globe .

The totality of these behaviors is the graph schema. Drawing a graph schema . The best way to represent a graph schema is, of course, a graph. This is how the graph schema looks for the classic Tinkerpop graph. Figure 2: Example graph schema shown as a property graph . The graph schema is pretty much a property-graph.

Oracle Database Spatial and Graph In-memory parallel graph analytics server (PGX) Load graph into memory for analysis . Command-line submission of graph queries Graph visualization tool APIs to update graph store : Graph Store In-Memory Graph Graph Analytics : Oracle Database Application : Shell, Zeppelin : Viz .

Figure 2: Hamiltonian cycles on the cube (a), the octahedron (b), and the cuboctahedron (c). Among the Platonic solids, the octahedron is the only one whose edge graph meets this criterion. And indeed, it is possible to cover all 12 edges with two disjoint Hamiltonian cycles. With a little bit of experi-

a graph database framework. The proposed approach targets two kinds of graph models: - IFC Meta Graph (IMG) based on the IFC EXPRESS schema - IFC Objects Graph (IOG) based on STEP Physical File (SPF) format. Beside the automatic conversation of IFC models into graph database this paper aims to demonstrate the potential of using graph databases .

1.14 About Oracle Graph Server and Client Accessibility 1-57. 2 . Quick Starts for Using Oracle Property Graph. 2.1 Using Sample Data for Graph Analysis 2-1 2.1.1 Importing Data from CSV Files 2-1 2.2 Quick Start: Interactively Analyze Graph Data 2-3 2.2.1 Quick Start: Create and Query a Graph in the Database, Load into Graph Server (PGX) for .

recession, weak pound; increase in adventure tourism 3 Understand roles and responsibilities of organisations responsible for the management of UK rural areas Roles and responsibilities: eg promotion of rural pursuits, giving information, offering advice, providing revenue channels, enforcement, protecting the environment, protecting wildlife, educating Types of organisation: eg Natural .