What does it mean when we say an algorithm is NP?
It means it's Non-deterministic Polynomial time.
and what does that mean?
It's a computing science term, it's one of the millenium math questions that are currently unanswered.
I wanna know what it means :(
Ullere -- no, what's unanswered is if P = NP.
Ah good shout ktk, thats the only time I've heard it used.
http://www.indiangeek.net/wp-content/uploads/Programmer%20competency%20matrix.htm
NP means a problem hard enough that it can't be solved in polynomial time, but an answer can be verified in polynomial time
like the towers of hanoi?
solved and verified, what's the difference?
I don't think hanoi is NP hard, no. The travelling salesman problem is the classic NP-hard problem, i.e. find a minimum distance route through a graph that touches every vertex
I don't think tower of hanoi is NP
Solved means finding a solution. Verified means, you are given a solution and verify that it is correct.
so dynamic programming can be used to solve NP?
that's sort of orthogonal. the point of NP is there's no polynomial-time algorithm that finds a solution. typically, approximation algortihms are used.
Oh yeah traveling salesman, Do you know the exact problem? Someone told me about it a year back I forgot hehe
Ishaan hit the google buddy :P
Yeah Right lol
sorry
agd, you are a mystery. you say you're not enrolledin school but you ask a wide variety of questions over a huge number of topics. what's the deal?
@ktklown:It's a mystery for me too.
Join our real-time social learning platform and learn together with your friends!