- Sorting --- http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=sorting
- Dynamic Programming --- http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=dynProg
- Data Structures --- http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=dataStructures
Friday, December 23, 2011
Topics to be covered
Wednesday, December 21, 2011
Prema Khadi Songs Lyrics (Mynaa Mynaa Telugu Song Lyrics)
Tuesday, December 20, 2011
GATE Syllabus for Computer Science
Monday, December 19, 2011
Top Coder - Marathon Contest Statement
Problem Statement |
|||||||||||||
|
N teams are expected to compete in a weekend-long regional
FIRST robotics event. Over the weekend, each of the N teams
will compete in M official matches. All of the matches will
be held on a single field with a fixed delay between the matches. It
can be assumed that each match takes no time and 1 unit of time
passes between consecutive matches. 6 different teams compete in each match. They are divided into 2 alliances called Alliance 1 and Alliance 2. Each of the alliances contains 3 teams. Each team within an alliance plays at a certain position. These positions are called Position 1, Position 2 and Position 3. For each of the N teams, the following information is available:
For an event schedule, a number of important metrics can be defined. These metrics are described in details below. Your task is to construct a schedule which minimizes the weighted sum of these metrics (where the weights are provided to your solution as an input parameter). Quality metrics for a schedule. Let us number all matches chronologically 0, 1, ..., G-1, where G = ceil((N * M) / 6) is the overall count of matches. The following 7 quality metrics for a schedule are considered to be important in this problem:
Input and output data. Scoring. You will need to implement a method createSchedule. The following parameters will be provided as input to the method:
In order to get a score for a testcase, the schedule must be correct (6 distinct teams in each match; each team from S plays M+1 matches, each other team plays M matches). A failure to return anything or returning an incorrect schedule will be indicated using a score of -1. Otherwise the score for a test case is equal to W[0] * (age difference metric) + W[1] * (rank difference metric) + W[2] * ("unique partner" fit metric) + W[3] * ("unique challenger" fit metric) + W[4] * ("match time" fit metric) + W[5] * (Alliance 1/Alliance 2 assignment metric) + W[6] * ("alliance position" fit metric). If the returned schedule is such that each match is official for at least 5 out of 6 participating teams, the additional bonus is applied: the score gets reduced by 5% (i.e., it is multipled by 0.95). The normalized score for a test case is defined as Best / Your, where Best is the best score achieved for the test case by all competitors and Your is your score for this test case. In case Your is 0.0, the normalized score is equal to 1. In case Your is -1.0, the normalized score is equal to 0. If no competitors obtained a correct schedule for a test case, then normalized scores of all competitors for this test case are 0. Your overall score is the sum of normalized scores over all test cases. Test case generation. Each test case will be generated as follows (each occurence of "randomly" assumes uniform distribution, unless otherwise specified):
A tester is provided for offline testing. You can check its source code for a precise implementation of test case generation and scoring calculation. |
|||||||||||||
Definition |
|||||||||||||
|
|||||||||||||
Notes |
|||||||||||||
| - | The time limit is 10 seconds per single test case (which includes only the time spent in your code), the memory limit is 1024 MB. | ||||||||||||
| - | There is no explicit code size limit. The implicit source code size limit is around 1 MB (it is not advisable to submit codes of size close to that or larger). Once your code is compiled, the binary size should not exceed 1 MB. | ||||||||||||
| - | The compilation time limit is 30 seconds. You can find information about compilers that we use and compilation options here. | ||||||||||||
| - | The processing server specifications can be found here. | ||||||||||||
| - | There are 10 example and 100 full submission test cases. | ||||||||||||
Constraints |
|||||||||||||
| - | All parameters will be generated exactly as described in section "Test case generation" of the problem statement. | ||||||||||||
Examples |
|||||||||||||
| 0) | |||||||||||||
|
|||||||||||||
| 1) | |||||||||||||
|
|||||||||||||
| 2) | |||||||||||||
|
|||||||||||||
| 3) | |||||||||||||
|
|||||||||||||
| 4) | |||||||||||||
|
|||||||||||||
| 5) | |||||||||||||
|
|||||||||||||
| 6) | |||||||||||||
|
|||||||||||||
| 7) | |||||||||||||
|
|||||||||||||
| 8) | |||||||||||||
|
|||||||||||||
| 9) | |||||||||||||
|
|||||||||||||
Sunday, December 11, 2011
Sunday, September 11, 2011
Friday, September 2, 2011
Sunday, June 19, 2011
Too much TV is a channel to diabetes
Watching television is the most entertaining and common daily activity world over, but doctors say that it is time people changed their viewing habits

According to a new study published in the Journal of the American Medical Association (JAMA), prolonged TV viewing was found to be associated with increased risk of type 2 diabetes, cardiovascular disease, and premature death.
The results showed that more than two hours of TV viewing per day increased risk of type 2 diabetes and cardiovascular disease, and more than three hours of daily viewing increased risk of premature death. For each additional two hours of TV viewing per day, the risk of type 2 diabetes, cardiovascular disease, and premature mortality increased by 20, 15, and 13%, respectively.
The researchers found that the effect of prolonged TV viewing on type 2 diabetes, which usually occur in adults, was related to unhealthy eating habits and low activity levels.
The experts from University of Southern Denmark, Harvard School of Public Health, Harvard Medical School, Brigham and Women's Hospital, Massachusetts, who conducted the study wrote that TV is the most prevalent and pervasive sedentary behaviour in industrialised countries and has been associated with morbidity and mortality.




