5 ms·
> Here's an NP-hard problem you haven't heard of, write correct code for nlogn solution on whiteboard in language of choice I guess that would be a trick-quest
by amelius 8y ago
> Here's an NP-hard problem you haven't heard of, write correct code for nlogn solution on whiteboard in language of choice
I guess that would be a trick-question then, as nobody ever solved an NP-hard problem in linearithmic time.
- elromulous 8y agoI think that was meant to be a hyperbole.
- Silhouette 8y agoIndeed, although it's not unheard of for mathematics lecturers at university to throw in a question within a twenty-question problem sheet for their course that is actually equivalent to some important unsolved problem, on the off chance that one of their students sees things in a totally new way and makes a ground-breaking discovery. Solving something NP-hard in linearithmic time would certainly qualify...
- dekhn 8y agoMy favorite was this question, quoted verbatim from a test in my biophysics grad program: What is the time resolved flourescence of a fluorophore in 4 dimensions? The solution, explained to me by my friend who was a very smart physicist, was the first time I heard the word "tensor" (this was a long time ago, long before machine learning used that word) and I was obsessed with the idea that there was all this cool math you could use to solve hard problems.
- lynal 8y agoDo you have a cite/example of a lecturer doing that on an exam? Are there any examples where that has been successful? I had never heard of that happening! It would be extremely cool if it ever worked.
- trocadero 8y agoNot an exam but: >An event in Dantzig's life became the origin of a famous story in 1939, while he was a graduate student at UC Berkeley. Near the beginning of a class for which Dantzig was late, professor Jerzy Neyman wrote two examples of famously unsolved statistics problems on the blackboard. When Dantzig arrived, he assumed that the two problems were a homework assignment and wrote them down. According to Dantzig, the problems "seemed to be a little harder than usual", but a few days later he handed in completed solutions for the two problems, still believing that they were an assignment that was overdue.[4][7] >Six weeks later, Dantzig received a visit from an excited professor Neyman, who was eager to tell him that the homework problems he had solved were two of the most famous unsolved problems in statistics https://en.wikipedia.org/wiki/George_Dantzig https://en.wikipedia.org/wiki/George_Dantzig
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- yomly 8y agoSupposedly this person proposed the correct structure for diborane in his homework. https://en.wikipedia.org/wiki/H._Christopher_Longuet-Higgins https://en.wikipedia.org/wiki/H._Christopher_Longuet-Higgins
- netgusto 8y agoNot an unsolved problem, but allegedly a new solution: The Gauss sum of integers from 1 to 100. https://www.nctm.org/Publications/Teaching-Children-Mathematics/Blog/The-Story-of-Gauss/ https://www.nctm.org/Publications/Teaching-Children-Mathemat...
- q845712 8y agoi audited university of Chicago's undergrad "hard-track" real analysis (i forget the name, but iirc there was an easier version of the course available). The problem sets would have several questions you were expected to solve, and then often 1-3 questions marked with 1 or 2 stars. I forget exactly the language, but there was some explanation that you probably couldn't solve the 1-star problems, and solving the two-star questions could be someone's PhD thesis, as it would require novel insight into an unsolved problem. The point was that it was a class for young aspiring mathematicians many of whom were used to being the smartest person around, and this helped them confront problems they couldn't solve without feeling like total failures. Also at that kind of school, you never know, someone might be able to solve one.
- nraynaud 8y agoSo now you have to know or invent a list of euristics that tend to go fetch the results first.
- dekhn 8y agoI should have said "n log n heuristic approximate solution" (my defense: I'm actually a biologist pretending to be a computer scientist). Many problem solutions at Google are effectively heuristic approximate solutions to NP-hard problems (or less hard but interesting problems). There's no trick, they just want to know you can figure out how to compute things quickly so they can run online in a server or a batch job. And the things that need to be computed are often problems with high time or space complexity and the exact answer doesn't need to be known.
- amelius 8y agoBut I suppose appropriate heuristic solutions are typically only "pondered about" and not "found" at the whiteboard, because they require extensive testing with real-world data to see if they are actually efficient in practice.
- dekhn 8y agoUsually in situations like this the person asking the interview question already has already built the system in production that uses that heuristic and saw that it worked. with a good set of rules of thumb a smart person should be able to propose reasonable heuristic solutions that have a chance of working
- edanm 8y agoNo, that's not necessarily how it works. Often (most?) of the time, heuristic solutions are also found by Complexity Theorists, and they usually can prove that their solution is efficient for problems with certain characteristics, e.g. random data, not random data in a particular way, etc. These are then applied by the industry when they come across problems with these characteristics.
- deleted 8y ago[deleted]
- amelius 8y agoYes, that's simplifying the problem by making assumptions about the data. Except you often don't know what assumptions you can make. Better to check the assumptions using the data before devising an algorithm for the given type of data.