Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
47 Online
Hi everyone! I have got question concerning lecture 13 (associated with Ps.8)/ Decision three was introduced. in handout- code was given where decision tree implemented using greedy algorithm so if we input v=[15,10,9,5,20,15,12,1150] w=[12,5,3,4,7,6,5,10] we got answer 24. Which is wrong, so decision tree fails. Can anybody suggest more efficient algorithm of decision tree implementation or better link on source with detailed description/ Thanks in advance!
Still Need Help?
Join the QuestionCove community and study together with friends!
why was it wrong??
Wrong alert. I found mistake in my implemintation of decision tree, so written alghoritm works good and is efficient. bwCA, thanks for trying to help me.
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Tylerr:
Does anyone know of any reputable websites offering scholarships, or where one ca
vannieduval:
Yall need to make a section for boredom and random thoughts
Jayisbetterfrfr:
Sometimes I beat up myself, I block my own way I cloud all my thoughts, please go
Luna34:
Mending Glass A heart once whole, now cracked and worn, Its edges sharp, its fabric torn, A silent cry, a whispered ache, From love once real, now past the
Luigi0210:
Bromine has 2 isotopes Br-79 and Br-81. The smaller isotope is 51% of the atoms on earth.
TheVoid:
Any other plurals or systems (DID/OSDD) on QC? (if you don't know what those are
CloverKris:
Freedom of Sweetness ______________________ A repeating pattern of needing entert
gelphielvr:
(creative writing) I have to write a short story about an obstacle i over came in my life for my writing class but i have absolutely no idea how to.
11 minutes ago
9 Replies
2 Medals
14 minutes ago
9 Replies
0 Medals
49 minutes ago
3 Replies
2 Medals
1 hour ago
3 Replies
3 Medals
17 hours ago
9 Replies
4 Medals
4 hours ago
11 Replies
4 Medals
2 hours ago
10 Replies
0 Medals
17 hours ago
2 Replies
0 Medals