Afişează mesaje
|
Pagini: 1 2 3 [4] 5 6 ... 57
|
86
|
Comunitate - feedback, proiecte si distractie / Blog / Răspuns: Distance
|
: Octombrie 14, 2013, 08:10:08
|
Solutia mea de acu multi ani era asa: planele D2A1C1 si A2B1C2 sunt paralele. Distanta intre ele e egala cu distanta intre D2A1 si A2B1. Diagonala B2D1 de lungime sqrt(3) e perpendiculara pe ambele plane si e impartita in 3 de cele doua plane. Deci distanta e sqrt(3)/3
|
|
|
95
|
Comunitate - feedback, proiecte si distractie / Blog / Răspuns: Numbers everyone should know
|
: Martie 27, 2013, 09:23:13
|
Good comment Andrew. I've added an example about path finding for GPS applications.
edit: I've just read your article. The idea of having named datasets of different sizes it's pretty smart! But for me those names don't mean too much(as they are UK centric) so other than UK and World I have to look the descriptions up to understand the table.
|
|
|
96
|
Comunitate - feedback, proiecte si distractie / Blog / Răspuns: Numbers everyone should know
|
: Martie 26, 2013, 17:14:15
|
Yes. Lots of problems have multiple parameters (graph algorithms, knapsack, etc) which I skipped in this article. Also there are subtleties in the constant factors. For example not all n^2 algos are alike. One that iterates through a matrix vs one that does just some math operations are pretty different. Also some optimization may significantly change the average case behavior.
I was thinking it would be fun to tag more execution times, complexities, algorithms and datastructures and then play with this table:
find all algorithms with some execution time find all algorithms for a given data structure find all data structures for a given complexity
|
|
|
100
|
Comunitate - feedback, proiecte si distractie / Blog / Răspuns: Interactive problems shortlist
|
: Martie 19, 2013, 10:49:33
|
@Petcu For 1) that's the cleanest solution I know. Good job! I like it more than Vlad's improvement over Andrei's solution.
For 2) you're wrong. I can prove you need at least min(n, m) queries to solve the problem. It's not trivial to prove and lots of people fall into the mistake of thinking some di. Can you guys see a proof?
3) You're wrong. Read Voroneanu's solution or my solution to see something that works in n + log n - 2 queries. I doubt one can do better.
4) Andrei has another 3n/2 - 2 solution I think. It's in line with my own.
@Claudiu your celebrity problem solution is the one I had in mind.
So we're left with 2) showing a worse case, and Vlad to explain his solution. 5), 6), 8 ), 9)
|
|
|
|