Python simple source code


I just need a code that generates all n-ary trees of depth x. For example, if I input n=2, depth=3, all binary trees of depth 3, but if I input n=3 depth=5 then all ternary trees of depth 5.

A generated tree should be output in one line on console, such as the following example:

R-101 001 001-110 000 111 000 000 011 000 000 001

Remember, I want ALL generrated trees, not just one random tree

The above example, if I output it in multiple lines would probably make more sense:


101 001 001

110 000 111 000 000 011 000 000 001

Each "1" represents a node, while "0" represents no node. Notice that the root is always R, a single node. The above example is a simple ternary tree. from the next depth below the node, we always have N bits of 0 or 1, because it's all the possibilities.

I don't need the formula to count it, because the formula is obvious and I have it. I just need the one-line string outputs for the n-ary tree of depth x.

This is simple, just a long description, but maximum 20 lines of code.

Do not bid over budget, you will be ignored!

Skills: Machine Learning, Python, Software Architecture

See more: python codes for games, cool python programs, python 3 code examples, simple python projects, python tutorial examples, python programming examples advanced, examples of programs written in python, python code examples pdf, I have existing android app which is 80% build completed. I\ ll provide the source code for existing app need to update UI and f, his is a simple project. I just need some database tables designe, i have a smartphone design i just need a manufacturer, very simple job i just need a photoshop expert to give, i need an android app i already have a design for it i just need it to be built gps service for taxi, i just need design, java atm simple source code using eclipse, simple quiz android source code random questions, simple source code countdown timer button android, telit python mysql source code, simple source code multiplayer game android, simple source code android

About the Employer:
( 65 reviews ) Targu Mures, Romania

Project ID: #16268853

15 freelancers are bidding on average $27 for this job


Hello sir. AS a python developer, I'm glad to see your project. Please contact me. If you give me your project, i think i can send you good result in a short time. I want to meet you soon. I will wait you with you More

$30 USD in 1 day
(79 Reviews)

Hello, I have 8+ years of programming experience in Python. I am sure that I can write a Python script to generate n-ary trees of the specified depth. Best regards AWM.

$30 USD in 1 day
(20 Reviews)

A proposal has not yet been provided

$35 USD in 1 day
(25 Reviews)

I am well equip to this kind of task, can handle it pretty well. I already done related to this job before. Let me know the best of your time so we can discuss further based on your requirements.

$29 USD in 1 day
(22 Reviews)

Salut. Cred ca ma descurc sa va ajut eu cu proiectelul asta :) Puteti sa ma contactati si sunt sigur ca o sa gasim o solutie in cel mai scurt timp. Alex

$25 USD in 3 days
(15 Reviews)

A proposal has not yet been provided

$23 USD in 2 days
(19 Reviews)

Expertise in python and can provide you your complete task in decided time frame with quality work. We can discuss further details in the message box Regards

$35 USD in 3 days
(7 Reviews)

I can develop this I have an experience of 5-6years in this field Sir I did many projects kindly reply me so that I can discuss with you

$22 USD in 2 days
(9 Reviews)
$25 USD in 1 day
(5 Reviews)

A proposal has not yet been provided

$66 USD in 4 days
(4 Reviews)

Our elite panel of developers, deliver the most exquisite IT SERVICES, for all major platforms. These products are optimized for breath-taking performance and smooth user experience, which makes your business, customer More

$10 USD in 1 day
(2 Reviews)

@@@@@ I almost completed the algorithm. @@@@@ Hi, dear. Thanks your post. I am a full-stack web developer with more than 10 years of experience. My experience in the full skills, including but not limited to: More

$20 USD in 1 day
(0 Reviews)
$25 USD in 1 day
(0 Reviews)

I had done many assignments on tree and graph data structures in my academics also having experience of python. So I think i can do this job well.

$15 USD in 2 days
(0 Reviews)

A proposal has not yet been provided

$15 USD in 3 days
(0 Reviews)