Solving Flipping Coin Problem and Penney-Ante Game without Using Generating Function

نویسنده

  • Kai Jin
چکیده

We revisit the Flipping Coins (FCP) Problem and PennyAnte Game(PAG) and present a new method for solving them. In FCP and PAG, we consider the process where a string S is generated character by character randomly until certain fixed pattern occurs. FCP asks the expected length of the S while PAG asks the probability of occurrence for each pattern. The classical way (see [13]) of computing those statistic quantities was based on generating function(g-f) with elegant formulas for solving FCP and PAG. Suppose there are t patterns and their total length is L. It requires O(t+t·L) running time, in which O(t) is for solving t variables linear equations, and O(t · L) is for computing the coefficients. We give a more intuitive way to solve FCP and PAG. Our algorithm is based on the Markov-chain model, without using any g-f techniques. It combines several basic algorithms such as KMP and DFS, and its running time is also O(t + t · L). The accuracy of the answer is better then the previous method.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

First-past-the-post and Penney-Ante Games

Penney-Ante is the name of a (probabilistic) game with pennies invented by Walter Penney. Analysis of the game depends on a collection of simultaneous (nonlinear) equations in languages. In all the publications I am aware of, the equations are complicated by the introduction of generating functions detailing lengths of words. This document records a proof in which the unnecessary naming of word...

متن کامل

First-Past-the-Post Games

Informally, a rst-past-the-post game is a (probabilistic) game where the winner is the person who predicts the event that occurs rst among a set of events. Examples of rst-past-the-post games include so-called block and hidden patterns and the Penney-Ante game invented by Walter Penney. We formalise the abstract notion of a rst-past-the-post game, and the process of extending a probability dist...

متن کامل

A Game Theory Approach for Solving the Knowledge Sharing Problem in Supply Chain

Knowledge management is the process of capturing, developing, sharing, and effectively using organizational knowledge as we known Knowledge management literature emphasizes the importance of knowledge as a valuable asset for SMEs. This paper highlights the efficient sharing of knowledge as a way of creating core competencies in the SMEs that are in civil construction activities. This perspectiv...

متن کامل

Pattern Matching Probabilities and Paradoxes as a New Variation on Penney’s Coin Game

This paper gives an outline of an interesting probability game related to coin arrangements discovered by Walter Penney in 1969, and explains John Conway’s concept of leading numbers and his algorithm for using them to automatically calculate mutual odds of winning. I will show that Conway’s elegant algorithm is correct by using average waiting times as proposed by Stanley Collings, and discuss...

متن کامل

Noisy quantum Parrondo games

Alternating two fair coin flipping games can create a winning game. Such a Parrondo game is a discrete model for a thermal ratchet. Recently we have constructed quantum versions of these coin flipping games that display the same “paradoxical” behavior. In this paper we add noise to these quantum Parrondo games in order that they can be compared with continuum models of quantum ratchets. Simulat...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010