Install R in Ubuntu 12.04 64 bit

April 2, 2013 Pro_R 1 comment

1

1. Update:
To obtain the latest R packages, add an entry like

deb http:///bin/linux/ubuntu raring/

or

deb http:///bin/linux/ubuntu quantal/

or

deb http:///bin/linux/ubuntu precise/

or

deb http:///bin/linux/ubuntu lucid/

in your /etc/apt/sources.list file, rep[……]

Read more

Andrew Ng’s Lecture @ Tsinghua U.

March 29, 2013 Tech No comments


Andrew Ng came to Beijing to give two lectures this Tuesday, one in Baidu and another in Tsinghua U.. And I was very lucky to go to his lecture in Tsinghua to be acknowledged with his ideas in Machine Learning.

I’ve been focusing on Big Data and Data Mining for several months. From where I stan[……]

Read more

Get Started With ABS (Agent Based Simulation)

March 22, 2013 Agent Based Simulation No comments

ABS is short for Agent Based Simulation, or Agent Based Modeling. I was acknowledged to this from my tutor, Pro.Guo. She is doing some research in data mining and some of her projects are on the recommendation algorithm applied to video websites such as Youtube. And the problem is that the tradition[……]

Read more

ARM7 Controlled Robot

February 24, 2013 Embedded System 5 comments

Video:(if it doesn’t work please click here)

This is a smart car controlled by LPC2148, and its position can be detected by using Zigbee equipments which is connected to a laptop which can display it.

The structure of the car model:

This is the Drivel Module and only after using it ca[……]

Read more

SPFA + DPThe Ghost Blows Light

February 24, 2013 Dynamic Programming No comments

The Ghost Blows Light
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1017 Accepted Submission(s): 303

Problem Description

My name is Hu Bayi, robing an ancient tomb in Tibet. The tomb consists of N rooms (numbered from 1 to N) wh[……]

Read more

DP : Hometask

February 24, 2013 Dynamic Programming No comments

Hometask
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Sergey attends lessons of the N-ish language. Each lesson he receives a hometask. This time the task is to translate some sentence to the N-ish language. Sentences of the[……]

Read more

DP:magic number

February 24, 2013 Dynamic Programming No comments

Magic Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 866 Accepted Submission(s): 353

Problem Description
There are many magic numbers whose lengths are less than 10. Given some queries, each contains a single number, if the[……]

Read more

DPMost Powerful

February 24, 2013 Dynamic Programming No comments

Most PowerfulTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu
SubmitStatus

Description

Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears a[……]

Read more

DPMax Sum of Max-K-sub-sequence

February 24, 2013 Dynamic Programming No comments

Max Sum of Max-K-sub-sequenceTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
hdu3415

Description
Given a circle sequence A[1],A[2],A[3]……A[n]. Circle sequence means the left neighbour of A[1] is A[n] , and the right neighbour of A[n] is A[1].
Now your job is to c[……]

Read more

DP:Travelling

February 24, 2013 Dynamic Programming No comments

B – Travelling
Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
SubmitStatus

Description
After coding so many days,Mr Acmer wants to have a good rest.So travelling is the best choice!He has decided to visit n cities(he insists on seeing all the cities!And he does not[……]

Read more

DP:Sliding Window

February 24, 2013 Dynamic Programming No comments

note: This article comes from the Internet. Please contact me via lethic@163.com if there is any infringement.
lethic@163.com.

E – Sliding Window
Time Limit:12000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
SubmitStatus

Description
An array of size n 106 is given to you. T[……]

Read more

DP: Bone Collector

February 24, 2013 Dynamic Programming No comments

Bone CollectorTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
SubmitStatusPracticeHDU 2602

Description
Many years ago , in Teddys hometown there was a man who was called Bone Collector. This man like to collect varies of bones , such as dogs , cows , also he went to t[……]

Read more

DP: Chores

February 24, 2013 Dynamic Programming No comments

ChoresTime Limit:3000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
SubmitStatusPracticePOJ 1949

Description
Farmer John’s family pitches in with the chores during milking, doing all the chores as quickly as possible. At FJ’s house, some chores cannot be started until others have b[……]

Read more

DP:

February 24, 2013 Dynamic Programming No comments

Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
SubmitStatusPracticePOJ 1088

Description
Michael Michael

1 2 3 4 5

16 17 18 19 6

15 24 25 20 7

14 23 22 21 8

13 12 11 10 9

24-17-16-125-24-23-…-3-2-1

Input
RC(1

DP:How To Type

February 24, 2013 Dynamic Programming No comments

How to TypeTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
SubmitStatusPracticeHDU 2577

Description
Pirates have finished developing the typing software. He called Cathy to test his typing software. She is good at thinking. After testing for several days, she finds th[……]

Read more

DP : Travel

February 24, 2013 Dynamic Programming No comments

TravelTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
SubmitStatusPracticePOJ 3230

Description

One traveler travels among cities. He has to pay for this while he can get some incomes.

Now there are n cities, and the traveler has m days for traveling. Everyday he[……]

Read more

DP

February 24, 2013 Dynamic Programming No comments

note: This article comes from the Internet. Please contact me via lethic@163.com if there is any infringement.
lethic@163.com.

Time Limit: 2000MS

Memory Limit: 65536K

Total Submissions: 12738

Accepted: 4645

Description

N*MN*MNM “H” “P”

Input

NM
NM(‘P”H’)N[……]

Read more

DP

February 24, 2013 Dynamic Programming No comments

F –
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
SubmitStatus

Description
,xhd.200679,xhd273,10.n,xhd,n2000,,xhd2*k.,2*kn.xhd(,xhd,).xhd3,6,(6-3)^2 = 9.xhd2*k(),.

Input
,n,k(2

DP:The Triangle

February 24, 2013 Dynamic Programming No comments

The Triangle
Time Limit: 1000MS Memory Limit: 10000K
Total Submissions: 29626 Accepted: 17473

Description

7
3 8
8 1 0
2 7 4 4
4 5 2 6 5

(Figure 1)

Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a ro[……]

Read more

DPLCS

February 24, 2013 Dynamic Programming No comments

Common Subsequence
Time Limit: 1000MS Memory Limit: 10000K
Total Submissions: 29658 Accepted: 11496

Description
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = < x1, x2, ..., xm > another sequence Z = < z1, z2, ..., zk > is a subsequence of X if ther[……]

Read more