Haskell programming small assignment

Zamknięty Opublikowano 7 lat temu Płatność przy odbiorze
Zamknięty Płatność przy odbiorze

Write a Haskell function that generates all binary trees with empty leaves of size n.

Then, given a binary tree, write a function that counts the number of leaves and another function that the number of internal nodes.

What do you observe about the two results? Write a short proof by induction as a comment added to your program stating that your observation applies to binary trees of any size.

Haskell

Numer ID Projektu: #12965372

O projekcie

6 ofert Zdalny projekt Aktywny 7 lat temu

6 freelancerów złożyło ofertę za $62 w tym projekcie

ahmsak

Hello Sir, I am a computer science tutor, I teach (among others) Haskell, Scheme, LISP, Prolog and Algorithms. I have done many projects like this, and I'm one of the top Haskell developers, and you can check by cli Więcej

$90 USD w ciągu 1 dnia
(91 Oceny)
6.6
mathworker

Hello. I work in area of applied mathematics. Your task is interesting for me and I can handle it. Write me for next discussion. Regards.

$60 USD w ciągu 3 dni
(2 Oceny)
3.4
rekreacija

hello, place your confidence in my Haskell / BST knowledge and experience. your requirements are easy to follow. let's discuss a solution. greets, srdjan

$50 USD w ciągu 3 dni
(3 Oceny)
2.8
iitmshanker

Hi, I think I have put the proposal on same project before. Please check it out and let me know if you are interested. thanks

$100 USD w ciągu 2 dni
(1 Ocena)
1.8
denormal

Hi! Haskell is a bit of a passion for me. One clarification: are we talking about *complete* binary trees (0 or 2 children)? Then I believe that the answer is that the number of internal nodes is equal to the number Więcej

$55 USD w ciągu 5 dni
(0 Oceny)
0.0
coder115

Hey Sir, i'm a computer Science student and i have done several projects like this in past. you can have a look at my work if you want to. Kindly give me one chance and i assure you that you'll feel proud about your de Więcej

$18 USD w ciągu 1 dnia
(0 Oceny)
0.0