Closed

Python simple source code

Hi,

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:

R

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

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

Project ID: #16268853

17 freelancers are bidding on average $28 for this job

yadianna9071

@@@@@ 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)
0.0
ExperSolutions

A proposal has not yet been provided

$23 USD in 2 days
(13 Reviews)
0.0
cracken

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)
0.0
zainpacc

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
(2 Reviews)
0.0
deepaksolanki94

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)
0.0
$25 USD in 1 day
(0 Reviews)
0.0
$25 USD in 1 day
(4 Reviews)
0.0
BeyoutiF00L

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
(0 Reviews)
0.0
algiasa

I worked with python to develope some applications. I think your project is very interesting I hope i can help you.

$35 USD in 2 days
(0 Reviews)
0.0
yuriecojocari

A proposal has not yet been provided

$66 USD in 4 days
(0 Reviews)
0.0
awxmem

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
(9 Reviews)
0.0
prksh143

Sir I am very much interested in this problem. I assure you I will solve this problem. But I have some doubt. Can we discuss?

$30 USD in 2 days
(0 Reviews)
0.0
uzairrzahid

A proposal has not yet been provided

$35 USD in 1 day
(0 Reviews)
0.0
AlexMetalhead

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
(8 Reviews)
0.0
MaryumAkhter1

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
(1 Review)
0.0
widadsaghir1993

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
(4 Reviews)
0.0
Lincoln2314

A proposal has not yet been provided

$15 USD in 3 days
(0 Reviews)
0.0