Hello, can any one please help:(adsbygoogle = window.adsbygoogle || []).push({});

Using the SML system to define a datatype for labeled 4-branch trees, the trees with possible

zero, one, two, three or four branches. Label the nodes of the trees by integers, i.e., no

polymorphic definition for this problem.

(b) Draw a concrete 4-branch tree of at least 15 nodes and represent this tree by using your 4- branch tree datatype definition. Your representation has to be accepted by SML as an instance of the datatype 4-branch trees you define.

(c) Using the SML system to define a function in SML that counts the number of all integer nodes of any integer 4-branch trees.

(d) Apply this function to your concrete tree to get the correct count

thanks in advance.

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Standard ML - please help

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads for Standard please help |
---|

Python (VPython) Can someone help me with my orbit simulator? |

I need help decrypting this |

C/++/# Help with MATLAB code? |

Linear Regression, etc : Standard vs ML Techniques |

Are there standard axes/orientations for Rubik's Cube game programs? |

**Physics Forums | Science Articles, Homework Help, Discussion**