249 reputation
15
bio website en.algoritmy.net
location
age
visits member for 3 years, 6 months
seen 19 hours ago

Jan
24
comment Situations when O(n^2) better than O(n*log(n))
@delnan: yes, but thats expected, as the algorithms are in different O classes. The question was (I suppose) aiming for cases where worse class algorithm can behave better.
Jan
24
comment Situations when O(n^2) better than O(n*log(n))
I have removed the part "when naivelly implemented"
Jan
24
comment Situations when O(n^2) better than O(n*log(n))
I do not think so, he is not asking for definition of complexity, but for examples, where algorithm from the better class performs badly on some input...
Mar
27
comment How can “hash functions” be used to implement hash maps at all?
Try (en.algoritmy.net/article/50101/Hash-table), there are several approaches discussed, including your proposed array based storage (which is not hash table)
Nov
29
comment How do I learn algorithms and data structures?
You may also try my project, which describes popular algorithms and data structures more straightforwardly than wikipedia and contains souce codes almost for every article (structure, approach, algorithm)... en.algoritmy.net
Nov
25
comment How many tiers should my models have in a DB driven web app?
The view layer is for representation. For example rendering HTML or destop view components. DTO is just transferring data to another application/application layer. View layer cannot do transporting, because it can be provided even by another application, or there might be more view layers - one for thin client, one for thick, one for web services... So the service must do it (or every view technology, but this violates DRY principle (do not repeat yourself))