Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
6 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
Breathless:
TOC: "MGF any confirmation on the commander? we require confirmation as soon as[radio static].
EdwinJsHispanic:
I wrote something that I don't know if I want it as a poem or song, Please let me know on yours thoughts about it, I'm still doing this! "Broken promises an
thehearken:
hi um I don't know if this is the right section for this, but can someone go over my poem and tell me if its good enough to give my English professor for a
heartlessprophet:
Aye what's 19z%u00f74p=9u03c0 my teacher thinking of impossible questions for us
kippppp:
does anyone have any good tips for writing stories? i'm trying to write a dnd campaign but i'm not that great of a writer yet.
GRIZZLEY19:
Y'all let me know what y'all think about this beat I made I took me like a hour maybe rate it 0/10 https://drive.
Ultrilliam:
Welcome to the 10th Anniversary Update! (Part 2) Sorry this one passed the date a
Twaylor:
was walking downtown and my adhd brain wanted to make some (rock?) lyrics: There'
AndreW2002:
There is an error when sending GIFs, is this known or is this a level requirement
1 day ago
3 Replies
0 Medals
14 hours ago
3 Replies
0 Medals
2 days ago
5 Replies
3 Medals
1 day ago
1 Reply
0 Medals
2 days ago
11 Replies
2 Medals
3 days ago
2 Replies
0 Medals
11 hours ago
23 Replies
8 Medals
4 days ago
6 Replies
0 Medals
6 days ago
10 Replies
0 Medals