Search found 22 matches
- Tue Sep 13, 2005 12:52 pm
- Forum: Algorithms
- Topic: dfs sequence
- Replies: 3
- Views: 1577
- Fri Jul 08, 2005 1:50 am
- Forum: Algorithms
- Topic: Usaco- Contact (IOI'98) .... I get "Time Limit exceed
- Replies: 2
- Views: 2019
- Tue May 31, 2005 11:05 am
- Forum: Volume 106 (10600-10699)
- Topic: 10679 - I Love Strings!!
- Replies: 101
- Views: 69016
This is not Boyer-Moore, this is Quick search algorithm
http://www-igm.univ-mlv.fr/~lecroq/stri ... CTION00190
Notice the O(n*m) running time
http://www-igm.univ-mlv.fr/~lecroq/stri ... CTION00190
Notice the O(n*m) running time
- Thu May 26, 2005 8:36 pm
- Forum: Volume 6 (600-699)
- Topic: 694 - The Collatz Sequence
- Replies: 46
- Views: 21936
- Thu May 26, 2005 12:03 pm
- Forum: Algorithms
- Topic: Algorithm For String Matching
- Replies: 5
- Views: 2224
- Sun May 22, 2005 2:24 pm
- Forum: Algorithms
- Topic: Lines and a point
- Replies: 4
- Views: 1551
This is something like usaco fence4 problem. general idea of my solution was to keep line segments that are visible so far, to add one new at a time, checking those you examined so far: if part of a line segment is not visible, we can break it in two ( or less ) visible parts and continue checking ...
- Mon May 02, 2005 3:21 pm
- Forum: Algorithms
- Topic: RMQ (Range Minimum Query), who r u?
- Replies: 4
- Views: 2621
I solved Cave Cows 2 like this: divide the segments into groups of 50, and preprocess the min of every group. Example querry: what is min from 117 to 873?
Compute "manually" min from 117 to 150, then you now mins from 150-200, 200-250, ... , 800-850, then manually from 850-873 again. Maximal time to ...
Compute "manually" min from 117 to 150, then you now mins from 150-200, 200-250, ... , 800-850, then manually from 850-873 again. Maximal time to ...
- Tue Apr 19, 2005 9:56 pm
- Forum: Algorithms
- Topic: Help on a USACO problem
- Replies: 3
- Views: 1656
- Mon Apr 18, 2005 5:29 pm
- Forum: Algorithms
- Topic: n-queens problem
- Replies: 15
- Views: 5018
- Mon Apr 18, 2005 5:13 pm
- Forum: Algorithms
- Topic: quentions about a knapsack problem
- Replies: 2
- Views: 1425
- Thu Apr 14, 2005 11:33 pm
- Forum: Algorithms
- Topic: want to learn about "Hash"
- Replies: 6
- Views: 2047
- Tue Oct 05, 2004 7:11 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10703 - Free spots
- Replies: 26
- Views: 12210
- Sun Sep 26, 2004 7:15 pm
- Forum: Volume 6 (600-699)
- Topic: 681 - Convex Hull Finding
- Replies: 60
- Views: 30695
- Sun Aug 15, 2004 8:52 pm
- Forum: Algorithms
- Topic: Maximal suffix
- Replies: 2
- Views: 1798
Maximal suffix
Problem: given a text determine lexicographically maxiaml suffix of a string in O(n).
For example:
cacbca has the max suffix cbca.
I read that this can be done with technique similar to one used in KMP, using the maximal suffix and at the same time a prefix of a word, but I don't know how to ...
For example:
cacbca has the max suffix cbca.
I read that this can be done with technique similar to one used in KMP, using the maximal suffix and at the same time a prefix of a word, but I don't know how to ...
- Wed Jul 28, 2004 3:10 pm
- Forum: Algorithms
- Topic: Cowcycles... A VERY hard problem!
- Replies: 4
- Views: 2924