Haskell simple source code - 2

Kapalı İlan edilme: 6 yıl önce Teslim sırasında ödenir
Kapalı Teslim sırasında ödenir

Hi,

I just need a code that generates all ternary trees of depth n in Haskell.

A generated tree should be output in one line on console, such as the following example (or anything else that is obvious):

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 ternary trees of depth n.

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

Do not bid over budget, you will be ignored!

Haskell Matematik Yazılım Geliştirme

Proje NO: #16269251

Proje hakkında

3 teklif Uzak proje Aktif 6 yıl önce

Bu iş için 3 freelancer ortalamada $27 teklif veriyor

ahmsak

Hello Sir, I am a computer science tutor, I teach (among others) Haskell, Prolog and Algorithms. I have done many projects like this, and I'm one of the top Haskell developers, and you can check by clicking on my pro Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(68 Değerlendirme)
0.0
Domus123

Hi, i'm a functional programming and haskell expert from Natural and Artificial lab at UFU. I can do your work for you! I'm a 5/5 freelancer. If I agree to work on your project that means that I'll give my best for y Daha Fazla

$25 USD in 2 gün içinde
(3 Değerlendirme)
0.0