I am making basic project for "Computer simulations of polymers and biopolymers" using Monte Carlo simulation and I currently have access only to ASUS eee PC netbook. Could anyone run attached program on a faster hardware for input data 100 50 50 1000000 . Last part of data is number of monte carlo tries, You can set it for example to 10^4 to see how long it would take for larger values. Output for larger values of last parameter are also appreciated. Any suggestions about the code (I know it is hard to read and badly commented with short mixed language variable names) or optimisation options are welcome.
Thank You in advance.

Edited 5 Years Ago by Zjarek: n/a

FYI, I launched your program on my home computer (remotely from my office), I will send you the results when I come home later this afternoon.

Here is the solution I got from running it with the parameters you prescribed (100 50 50 1000000).

Attachments
100 274.943 41.2865 162.811
150 466.728 67.265 239.911
200 562.901 86.844 317.068
250 1555.53 199.133 395.549
300 1576.09 148.785 471.38
350 683.796 151.197 547.836
400 1306.52 210.447 625.373
450 1595.62 298.433 703.312
500 766.599 193.733 779.977
550 2309.17 284.463 854.675
600 2238.06 342.971 931.249
650 2575.69 418.802 1008.97
700 1993.82 355.3 1084.65
750 2589.22 463.336 1164.02
800 4456.04 395.963 1238.57
850 5122.27 602.875 1314.17
900 3286.12 480.212 1390.8
950 1958.1 405.439 1466.87
1000 1320.91 397.75 1548.16
1050 2524.23 347.416 1623.02
1100 3606.23 510.819 1703.51
1150 2548.11 487.765 1775.19
1200 2919.01 540.642 1852.66
1250 3067.21 431.266 1925.68
1300 5593.25 516.67 2002.11
1350 8526.24 1484.12 2080.36
1400 4549.08 689.306 2158.55
1450 5325.97 707.974 2231.49
1500 2085.96 570.035 2304.8
1550 5213.84 968.91 2387.49
1600 3055.13 713.146 2462.88
1650 9905.36 1610.96 2540.06
1700 8087.78 1228.57 2611.17
1750 1288.18 594.732 2687.44
1800 1291.89 594.769 2776.06
1850 3390.54 691.405 2838.26
1900 11833.6 1387.02 2916.1
1950 5786.82 1473.47 2993.78
2000 12248.6 1806.34 3071.78
2050 13889.2 1804.07 3151.48
2100 5704.91 656.586 3226.57
2150 15325.6 1782.67 3301.14
2200 4492.39 1031.56 3379.77
2250 2736.91 924.499 3448.81
2300 8383.74 975.386 3526.93
2350 11327.1 1264.34 3603.2
2400 24234.8 1986.36 3680.07
2450 16278.1 1778.6 3754.17
2500 1748.21 774.635 3837.2
2550 5750.63 1231.08 3904.69

Thank you very much, they are helpful, although I see that this method needs a lot more time for larger number of segments.

This question has already been answered. Start a new discussion instead.