RStudio: MemoryError: Java heap space

Working with not so big data in my laptop, I often encounter a problem such as, when I want to read thousand of file to RStudio. The error message can be seen below: Error in code execution because of “java.lang.OutOfMemoryError: Java heap space” What is the solution? I embed those code to increase the allocation …

Playing with Dictionary in Java

Dictionary is one handy tools in programming. It map a keyword with certain value, just like real dictionary or data-base. Python has very powerful dictionary, it has many method that already embedded in it, such as if I want to sort and print the value based on the key, or based on the value. Because …

What is the best strategy for Iterated Prisoner Dilemma?

Several strategy : Always cooperate Always defect Tit for Tat Tit for 2 Tats Random Genetic Algorithm Tit for tat give verygood result. Genetic Algorithm suppose to give better result based from study from IIT Kanpur, see this link http://www.iitk.ac.in/kangal/seminar/shashi.pdf. The problem with this algorithm is that its hard to calculate the optimum 70 bytes of …