Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Binary tree from a list
#1
Hi all,

I need to create a binary tree, whose data are stored in a list:

[[parent1, one_of_children_from_1],[parent2, one_of_children_from_2],[parent1, one_of_children_from_1],...]   #they are in random order
Can you give me any hint, what should I use in order to create such a binary tree?
Reply


Messages In This Thread
Binary tree from a list - by dan789 - Mar-30-2019, 02:40 PM
RE: Binary tree from a list - by ichabod801 - Mar-30-2019, 03:00 PM
RE: Binary tree from a list - by dan789 - Mar-30-2019, 03:02 PM
RE: Binary tree from a list - by ichabod801 - Mar-30-2019, 03:24 PM
RE: Binary tree from a list - by dan789 - Mar-30-2019, 03:41 PM
RE: Binary tree from a list - by ichabod801 - Mar-30-2019, 05:42 PM
RE: Binary tree from a list - by dan789 - Mar-30-2019, 06:06 PM
RE: Binary tree from a list - by ichabod801 - Mar-30-2019, 06:53 PM
RE: Binary tree from a list - by dan789 - Mar-31-2019, 01:41 PM
RE: Binary tree from a list - by ichabod801 - Mar-31-2019, 02:05 PM
RE: Binary tree from a list - by dan789 - Mar-31-2019, 02:10 PM
RE: Binary tree from a list - by ichabod801 - Mar-31-2019, 02:13 PM
RE: Binary tree from a list - by dan789 - Mar-31-2019, 02:20 PM
RE: Binary tree from a list - by ichabod801 - Mar-31-2019, 08:26 PM
RE: Binary tree from a list - by dan789 - Mar-31-2019, 09:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Code for Preorder Traversal of a Binary Tree Bolt 1 646 Sep-22-2023, 09:32 AM
Last Post: Gribouillis
  Binary tree AlexPython 3 1,040 Dec-07-2022, 06:41 AM
Last Post: ndc85430
  Group List Elements according to the Input with the order of binary combination quest_ 19 6,680 Jan-28-2021, 03:36 AM
Last Post: bowlofred
  Python3 binary tree not replacing parent nodes with child nodes Aspect11 0 1,809 Sep-23-2020, 02:22 PM
Last Post: Aspect11
  search binary file and list all founded keyword offset Pyguys 4 2,845 Mar-17-2020, 06:46 AM
Last Post: Pyguys
  hex file to binary or pcap to binary baran01 1 5,755 Dec-11-2019, 10:19 PM
Last Post: Larz60+
  Pack binary data to list of integers bearer 0 2,183 Mar-29-2019, 12:17 PM
Last Post: bearer
  Convert tree to list of lists Dylan_T_Rabbit 2 11,807 Jul-12-2017, 02:09 PM
Last Post: Dylan_T_Rabbit

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020