1 /*
2 Problem link
3 Type: Graph
4 Algorithm: Floyd
5 */
Introduction
This is my blog of programming, I take notes and leave codes of computer science problems I solved here. Be my guest to comment :)
Thursday, February 28, 2013
uva 186 - Trip Routing
Wednesday, February 27, 2013
Tuesday, February 26, 2013
Monday, February 25, 2013
Red - black tree full implementation
Red-black tree is known for an efficient data structure use in computer science. It is a type of self-balance binary search tree, it performs insertion, deletion, searching,.. in the worst running time of O(lg n). This is my red-black tree implementation in C++:
Friday, February 22, 2013
uva 10009 - All Roads Lead Where?
1 /*
2 Problem link
3 Type: Graph
4 Algorithm: BFS
5 */
Tuesday, February 19, 2013
Thursday, February 7, 2013
uva 10306 - e-Coins
1 /*
2 Problem link
3 Type: DP - Coins change
4 Algorithm:
5 First I use the function getP to search for a list of possible points with
6 length = s from the origin and have possitive coordinates.
7 Use the coins change algorithm (uva 166) with a few changes to find the
8 minimum step to each point i got. Get the minimum for each point result.
9 */
Subscribe to:
Posts (Atom)