Buffon’s needle experiment was originally devised to get the value of . With the advent of computers, Buffon’s needle algorithm has been used pedagogically as an example of Monte Carlo methods in introduction classes, and there are many Buffon’s needle algorithm implementations available on the internet. However, for the calculation of , the exact value of is used in the programs for Buffon’s needle angle sampling, and hence the example is not demonstrated correctly. This brief note presents a random angle sampling algorithm for the Buffon’s needle. We then compare the Buffon’s needle and Hit-and-Miss integration algorithms using Monte Carlo laboriousness comparison, and find that the Hit-and-Miss algorithm is superior.
CITATION STYLE
Hwang, C.-O., Kim, Y., Im, C., & Lee, S. (2017). Buffon’s Needle Algorithm to Estimate π. Applied Mathematics, 08(03), 275–279. https://doi.org/10.4236/am.2017.83022
Mendeley helps you to discover research relevant for your work.