skip to main content
10.1145/2513456.2513474acmotherconferencesArticle/Chapter ViewAbstractPublication PageshtConference Proceedingsconference-collections
research-article

Cooperating to buy shoes in the real world: online cycle picking in directed graphs

Published:07 October 2013Publication History

ABSTRACT

There are many people who have different size feet and need different sizes of shoes to get shoes that fit well. A static approach to solving the problem could be to get a list of all the people who need shoes and their size requirements, then from that list find groups of people who can cooperate. In a graph theory sense this means creating a directed graph from the input data, finding all of the simple cycles in the graph and then picking the smallest set of cycles such that each node in a cycle in the original graph is in at least one cycle in the final set of cycles.

This paper looks at a more dynamic approach of dealing with the problem. People who need shoes enter the system, by giving their shoe size requirements, and remain in the system until their needs have been satisfied. This approach is represented by an online algorithm which stores all the possible paths in the graph at any stage, checks for cycles when a new person enters the system and updates appropriately in each iteration. The online algorithm can also accommodate "altruism" (where an individual chooses to stay in the system to assist others to buy shoes) and spreading the cost of buying additional pairs of shoes (for example, two people buying three pairs of shoes) in order for individuals to more quickly have their shoe needs satisfied. The three versions of the online algorithm were implemented and tested on synthetic data. The online algorithm generally satisfies the needs of the people entering the system although its performance is sometimes affected by the lack of knowledge of the entire input set.

References

  1. S. Albers. Online algorithms: a survey. Mathematical Programming, 97(1-2):3--26, 2003.Google ScholarGoogle ScholarCross RefCross Ref
  2. N. Alon, B. Awerbuch, Y. Azar, N. Buchbinder, and J. S. Naor. The online set cover problem. SIAM Journal of Computing, 39(2):361--370, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. K. Basson. OddShoeFinder.com, 2007. http://oddshoefinder.com/, Last retrieved "31 January 2013".Google ScholarGoogle Scholar
  4. G. Divèki and C. Imreh. Online facility location with facility movements. Central European Journal of Operations Research, 19(2):191--200, 2011.Google ScholarGoogle ScholarCross RefCross Ref
  5. L. Epstein. Online bin packing with cardinality constraints. SIAM Journal of Discrete Mathematics, 20(4):1015--1030, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. D. Fotakis. Online and incremental algorithms for facility location. SIGACT News, 42(1):97--131, Mar. 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. E. Grove, M.-Y. Kao, P. Krishnan, and J. S. Vitter. Online perfect matching and mobile computing. In Proceedings of International Workshop on Algorithms and Data Structures, 1995. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. D. B. Johnson. Finding all the elementary circuits of a directed graph. SIAM Journal on Computing, 4:77--84, 1975.Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. H. Liu and J. Wang. A new way to enumerate cycles in graph. In Proceedings of the Advanced International Conference on Telecommunications and International Conference on Internet and Web Applications and Services (AICT/ICIW 2006), 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. A. Meyerson. Online facility location. In Foundations of Computer Science, 2001. Proceedings. 42nd IEEE Symposium on, pages 426--431, 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. R. Neapolitan and K. Naimipour. Foundations of Algorithms. Jones and Bartlett, Sudbury, MA, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. I. D. Sanders. Cooperating to buy shoes: An application of picking cycles in directed graphs. In Proceedings of the 2013 SAICSIT conference. SAICSIT, 7--9 October 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. R. Shah, P. J. Varman, and J. S. Vitter. Online algorithms for prefetching and caching on parallel disks. In Proceedings of the sixteenth annual ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '04, pages 255--264, New York, NY, USA, 2004. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. S. Vassallo and R. Stern. Shoes Without A Partner, 2005. http://www.e-bility.com/disability-news/swapshoes.php, Last retrieved "31 January 2013".Google ScholarGoogle Scholar

Index Terms

  1. Cooperating to buy shoes in the real world: online cycle picking in directed graphs

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in
          • Published in

            cover image ACM Other conferences
            SAICSIT '13: Proceedings of the South African Institute for Computer Scientists and Information Technologists Conference
            October 2013
            398 pages
            ISBN:9781450321129
            DOI:10.1145/2513456

            Copyright © 2013 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 7 October 2013

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • research-article

            Acceptance Rates

            SAICSIT '13 Paper Acceptance Rate48of89submissions,54%Overall Acceptance Rate187of439submissions,43%
          • Article Metrics

            • Downloads (Last 12 months)0
            • Downloads (Last 6 weeks)0

            Other Metrics

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader