d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Help Please
Add Reply New Topic New Poll
Member
Posts: 19,452
Joined: Jun 8 2006
Gold: Locked
Warn: 40%
Feb 20 2014 11:47am
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Feb 21 2014 12:58pm
Well you could take two approaches.

If you have a databank you can poll you can implement a constant time algorithm. Essentially if you database you are polling is storing hashes of the key, in this case the question, then the value returned should be the answer. If we set our databank to be an instance of Google, then if we poll Google for the answer, it should work.


Or, you can do an exhaustive search. There are only 4 possible answers. 3 if you remove the answer you have already determined to be incorrect. So brute force should complete in a meaningful time. In this case you can implement a linear time algorithm bound by the number of possible answers that would attempt to answer the question until it finds the right one.


Member
Posts: 3,580
Joined: Aug 17 2013
Gold: 275.01
Feb 21 2014 01:04pm
LOL

I really liked the first approach tbh

As for your "Question 9"
Answer 1 sounds out of context
Answer 2 makes sense if you're not taking a med exam
Answer 3 I'm pretty sure robotics are at and beyond this point, so np
Answer 4 Sounds like a trick question O_o

Good luck
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll