So I decided to make a simulation. I wrote the code and ran the game.
What I found surprised me. On the computer, after the two players's
cards were face up on the table, the player who won the table would take
the cards all in the order they were placed. The fact that this order
was not changed seemed to have made the game very likely to repeat on forever. Using a sample of 1000 game runs, the probability that a game
would end was 0.128, about 13%. So the probability of a never-ending
game seems to be about 87%.
I then decided to run the game such that the player who won would
shuffle the cards before putting them back at the end of his stack of
cards. Doing the simulation this way results in the game ending nearly always---99% probability. Now, I'm saying 99% because I simply did not
find a single game run that went on forever. (But I don't think the probability is 100%. But the statatistic /is/ 100%.)
I asked myself---why does the shuffling make the game likely to end? I
don't know.
First, I'd want to know how you determined that a game was "unending" -- since by definition such a game could continue indefinitely, you must
have selected a number at which you'd "give up" on the game. How did you
pick that number?
John <john@building-m.simplistic-anti-spam-measure.net> writes:
First, I'd want to know how you determined that a game was "unending" --
since by definition such a game could continue indefinitely, you must
have selected a number at which you'd "give up" on the game. How did you
pick that number?
Sorry, I shouldn't have leapt to the most naive implementation here: you could have also implemented some sort of detection for "loops".
Would be interested to see the code, by the way.
john
I asked myself---why does the shuffling make the game likely to end?
I explained to the CIO of a large government agency that a particular
system wasn't a computer at all because it wasn't a finite automaton,
I'm going to present something about the exact sciences to high-school >students I never met. In the area of mathematics or computer science,
what would be a nice short presentation? What is the computer about?
kludge@panix.com (Scott Dorsey) wrote or quoted:
I explained to the CIO of a large government agency that a particular >>system wasn't a computer at all because it wasn't a finite automaton,
What is a computer?
Is this your own definition, or did you quote it from someone else?
Are there any other definitions?
How do you know which definition to choose as the correct one?
kludge@panix.com (Scott Dorsey) wrote or quoted:
I explained to the CIO of a large government agency that a particular >>system wasn't a computer at all because it wasn't a finite automaton,
What is a computer?
Is this your own definition, or did you quote it from someone else?
Are there any other definitions?
How do you know which definition to choose as the correct one?
Stefan Ram <ram@zedat.fu-berlin.de> wrote:
kludge@panix.com (Scott Dorsey) wrote or quoted:It's a finite automaton.
I explained to the CIO of a large government agency that a particular >>>system wasn't a computer at all because it wasn't a finite automaton,What is a computer?
Is this your own definition, or did you quote it from someone else?I like to quote from Andrew Tennanbaum's book on the subject.
Are there any other definitions?I suppose there are, since there are people whose job title is "computer"
and we do have devices like the B-29 fire control computer which compute
but are not actually finite automata.
Our computer security people wanted us to put encryption software on E-6B >slide rules because they were on the inventory as "portable computers."
How do you know which definition to choose as the correct one?I think in the 21st century, everyone assumes a computer to be a finite >automaton or something mathematically equivalent. That is, turing-machine- >equivalent except for having a finite length tape.
I couldn't find a definition from Tanenbaum on the question that
includes the word "automaton", but here's a quotation from Tanenbaum:
|For the purposes of this paper, we can define a computer as
|any machine equivalent to a Turing machine.
"A Critique of Pure Computation: Against Strong AI and
Computationalism", Causey (2022?).
On 24 Mar 2024 01:49:31 -0000
kludge@panix.com (Scott Dorsey) wrote:
Stefan Ram <ram@zedat.fu-berlin.de> wrote:
kludge@panix.com (Scott Dorsey) wrote or quoted:
I explained to the CIO of a large government agency that a particular
system wasn't a computer at all because it wasn't a finite automaton,
You don't say what the context of the discussion was but I assume that some >practical issue was concerned. I can't think of a practical situation where >the most useful reply is around the lines of whether the system involved is a >computer or a finite automaton.
Our computer security people wanted us to put encryption software on E-6B
slide rules because they were on the inventory as "portable computers."
Is this the same thing as the CIO discussion you mention above or something >else ? Anyway , if someone wanted to install any kind of software on slide >rules and they didn't know that "portable computers" in this context refers >to slide rules , I would point out to them that it does. If they did know that >slide rules were involved and they seriously wanted to install software on >them , I would be at a loss for words.
I don't know who "everyone" is. I don't think that most people or even most >IT professionals bother to think of a general definition for "computer". >Ultimately the question is philosophical. Is the human mind a computer ? Is >the whole universe a computer ? I only think of "finite automaton" or "Turing >machine" in connection with mathematical theorems. For practical computing >purposes I don't think they are useful terms.
In article <Q9P3eLBZy7cnWdcu5@bongo-ra.co>,
Spiros Bousbouras <spibou@gmail.com> wrote:
Is this the same thing as the CIO discussion you mention above or
something else ? Anyway , if someone wanted to install any kind of >>software on slide rules and they didn't know that "portable
computers" in this context refers to slide rules , I would point out
to them that it does. If they did know that slide rules were
involved and they seriously wanted to install software on them , I
would be at a loss for words.
We had to destroy the E-6Bs because the rules say that computers have
to have whole-disk encryption and the E-6B could not support
whole-disk encryption.
We also had to get rid of a bunch of computers that did not have
disks and could not boot off disk, because such machines could not
support whole-disk encryption.
Because it is important to follow the rules. The security people did not care about whether the system was secure or not because it was not their
job to do so. It was their job to enforce the rules.
... Anyway , if someone wanted to install any kind of software on slide
rules and they didn't know that "portable computers" in this context refers to slide rules , I would point out to them that it does.
What is the computer about?
Correction : finite automata are useful for implementing
regular expression engines.
On Thu, 21 Mar 2024 14:57:09 -0300, Johanne Fairchild wrote:
What is the computer about?
The computer is the “universal machine”. On its own, it doesn’t do very much: you have to write programs to tell it what to do. Those programs can make it solve any problem for which you can write down the rules of the solution--particularly if the rules are so long and complex that no human being would have a hope of being able to carry them out manually.
So the computer is about automation of tasks. Nowadays, most people do
things on computers through point-and-click (or point-and-tap) GUIs. Those are great for performing canned tasks, that have already been
preprogrammed into the app. They are not so good for automating more
complex sequences built out of those canned tasks. That’s where concepts like “scripting” and the “command line” come in.
I asked a chatbot,
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 388 |
Nodes: | 16 (2 / 14) |
Uptime: | 05:13:11 |
Calls: | 8,219 |
Calls today: | 17 |
Files: | 13,122 |
Messages: | 5,872,259 |
Posted today: | 1 |