Search found 12 matches

by Mek
Tue May 10, 2005 1:48 pm
Forum: Algorithms
Topic: Help to solve this problem !
Replies: 0
Views: 966

Help to solve this problem !

Petya wants to organize programming contest in his institute and he has to pass some consecutive bureaucratic procedures.
At each step Petya get or pay some money.

He may pay 100 coins to skip next bureaucratic procedures or 200 coins to skip next two procedures or k*100 coins to skip next k ...
by Mek
Thu Mar 24, 2005 9:09 pm
Forum: Algorithms
Topic: Intervals
Replies: 8
Views: 2454

I did it with O(n^2) ... but it's too slow... i can't understand how to do it in O(nlogn)
by Mek
Wed Mar 23, 2005 11:37 pm
Forum: Algorithms
Topic: Intervals
Replies: 8
Views: 2454

8)
but this can be done by binary search and time will be O(n log n)
I will now try this... :)
by Mek
Wed Mar 23, 2005 11:34 pm
Forum: Algorithms
Topic: Intervals
Replies: 8
Views: 2454

I think i can't do this because time will be O(n^2) but I need faster
by Mek
Wed Mar 23, 2005 11:29 pm
Forum: Algorithms
Topic: Common tangent to two circles
Replies: 3
Views: 1829

Hm.. I know how to draw them.. but I need equations of tangents :)
by Mek
Wed Mar 23, 2005 11:20 pm
Forum: Algorithms
Topic: Intervals
Replies: 8
Views: 2454

Can you help me with DP solution?

D[k] - is best solution for first K intervals

If I know D[1] ... D[k - 1]
How to express D[k] ?
by Mek
Mon Mar 21, 2005 10:56 pm
Forum: Algorithms
Topic: Common tangent to two circles
Replies: 3
Views: 1829

Common tangent to two circles

Help :)
How to find common tangent to two circles?
by Mek
Fri Mar 18, 2005 1:09 pm
Forum: Algorithms
Topic: Intervals
Replies: 8
Views: 2454

Intervals

Hi all !

Can somebody tell me how to solve this problem?

There are N intervals (ai, bi). ai and bi are integers not exceeding 2'000'000'000 by their absolute value.
Your task is to find the number of ways we could choose a maximal subset of disjoint intervals.
1 ≤ N ≤ 100000
by Mek
Mon Feb 14, 2005 10:42 pm
Forum: Algorithms
Topic: One problem..
Replies: 0
Views: 926

One problem..

How to solve this problem ?
Given a1, b1, c1
0<= a1, b1, c1 < 2^24

How to find such a, b, c that

a1 = (b * c) xor a
b1 = (a * c) xor b
c1 = (a * b) xor c

all operations are done mod 2^24
by Mek
Sun Feb 06, 2005 11:46 pm
Forum: Algorithms
Topic: max flow or max matching
Replies: 6
Views: 6367

Thanks, I'll try to solve them 8)
by Mek
Sun Feb 06, 2005 4:05 pm
Forum: Algorithms
Topic: max flow or max matching
Replies: 6
Views: 6367

max flow or max matching

please tell me some uva problems with max flow or max matching application to train my skill :)
by Mek
Tue Jan 18, 2005 10:48 pm
Forum: Algorithms
Topic: How to find permutation root?
Replies: 1
Views: 1838

How to find permutation root?

..

Go to advanced search