CFP last date
20 January 2025
Call for Paper
February Edition
IJCA solicits high quality original research papers for the upcoming February edition of the journal. The last date of research paper submission is 20 January 2025

Submit your paper
Know more
Reseach Article

A Simulated Enhancement of Fisher-Yates Algorithm for Shuffling in Virtual Card Games using Domain-specific Data Structures

by Abejide Olu Ade-ibijola
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 54 - Number 11
Year of Publication: 2012
Authors: Abejide Olu Ade-ibijola
10.5120/8612-2469

Abejide Olu Ade-ibijola . A Simulated Enhancement of Fisher-Yates Algorithm for Shuffling in Virtual Card Games using Domain-specific Data Structures. International Journal of Computer Applications. 54, 11 ( September 2012), 24-28. DOI=10.5120/8612-2469

@article{ 10.5120/8612-2469,
author = { Abejide Olu Ade-ibijola },
title = { A Simulated Enhancement of Fisher-Yates Algorithm for Shuffling in Virtual Card Games using Domain-specific Data Structures },
journal = { International Journal of Computer Applications },
issue_date = { September 2012 },
volume = { 54 },
number = { 11 },
month = { September },
year = { 2012 },
issn = { 0975-8887 },
pages = { 24-28 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume54/number11/8612-2469/ },
doi = { 10.5120/8612-2469 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2024-02-06T20:55:25.894057+05:30
%A Abejide Olu Ade-ibijola
%T A Simulated Enhancement of Fisher-Yates Algorithm for Shuffling in Virtual Card Games using Domain-specific Data Structures
%J International Journal of Computer Applications
%@ 0975-8887
%V 54
%N 11
%P 24-28
%D 2012
%I Foundation of Computer Science (FCS), NY, USA
Abstract

Generally stated Algorithms are often preferred because of their wider horizon of applications owing to their freedom from any underlying language specification – they are not tied to any language and are easily implemented by anybody on any machine. This advantage becomes a hitch in applications where optimal implementation is of paramount concern – such as in games, as the developer's chosen language might suggest a better implementation that alters the algorithm using predefined data structures and/or sometimes, libraries of the preferred language. In this paper, a reconsideration of the Fisher-Yates Shuffle Algorithm was carried out using the "Generic List" data structure of the . Net library, an enhanced version of the Algorithm was drawn that targets a . Net implementation, a graphical simulation was developed using a "built-from-scratch" deck of Virtual Cards for the game of Whot! and a satisfactory permutation was achieved.

References
  1. McLeod John (2007). Whot! Retrieved from http://www. pagat. com/com/whot. html#variations August, 2012.
  2. Mann Brad (1993). How many Times Should you Shuffle a Deck of Cards? Dartmouth College Chance Project http://www. dartmouth. edu/~chance/teaching_aids/Mann. pdf
  3. Mvngu (2011). Statistical Analysis of the Fisher-Yates Shuffle. http://mvngu. wordpress. com/2011/05/08/statistical-analysis-of-the-fisher-yates-shuffle/
  4. Irde (2012). Shuffling an Array. Tutorial 2, inside Data Structures and Algorithms. http://www. lrde. epita. fr/~adl/ens/iitj/eso211/tut2. pdf
  5. Fisher, R. A. , Yates, F. (1948)
  6. . Statistical tables for biological, agricultural and medical research (3rd ed. ). London: Oliver & Boyd. pp. 26–27. OCLC 14222135. (note: 6th edition, ISBN 0-02-844720-4, is available on the web, but gives a different shuffling algorithm by C. R. Rao)
  7. Durstenfeld, Richard (1964). "Algorithm 235: Random permutation". Communications of the ACM 7 (7): 420. doi:10. 1145/364520. 364540.
  8. Black, Paul E. (2005). "Fisher–Yates shuffle". Dictionary of Algorithms and Data Structures. National Institute of Standards and Technology.
  9. Atwood Jeff (2007). Danger of Naivete. http://www. codinghorror. com/blog/2007/12/the-danger-of-naivete. html
  10. Chen Yanguang (2012). Zipf's Law, Hierarchical Structure, and Cards-Shuffling Model for Urban Development. Hindawi Publishing Corporation. Discrete Dynamics in Nature and Society, Volume 2012, Article ID 480196, 21 pages.
  11. Wiki (2012). Shuffling and Fisher-Yates Shuffle. Wikipedia Online Encyclopedia.
  12. Wilson, M. C. (2004). "Overview of Sattolo's Algorithm"INRIA Research Report. 5542. Algorithms Seminar 2002–2004. Summary by Éric Fusy. pp. 105–108. ISSN 0249-6399.
Index Terms

Computer Science
Information Sciences

Keywords

Fisher-Yates Shuffle (FYS) Random Permutation Domain-Specific Data Structures Simulated Enhancement