How computer can decide?
How computer can decide?
I was wondering how a computer can decide considering the fact that it is a deterministic system? I know that there is infrastructure in the CPU that does "if" operation. I was wondering if someone could possibly explain how it works in simple language.
- Terrapin Station
- Posts: 4548
- Joined: Wed Aug 03, 2016 7:18 pm
- Location: NYC Man
Re: How computer can decide?
I wouldn't say that computers are deterministic systems, by the way.
At any rate, you can program computers to factor variable data, acquired while the program is executing, where it weights different options differently based on a heuristic that the programmer set up.
Re: How computer can decide?
The Schrodinger equation is deterministic.Terrapin Station wrote: ↑Tue Feb 16, 2021 5:08 pmI wouldn't say that computers are deterministic systems, by the way.
At any rate, you can program computers to factor variable data, acquired while the program is executing, where it weights different options differently based on a heuristic that the programmer set up.
- Terrapin Station
- Posts: 4548
- Joined: Wed Aug 03, 2016 7:18 pm
- Location: NYC Man
Re: How computer can decide?
I'm not a realist on mathematics.bahman wrote: ↑Tue Feb 16, 2021 5:29 pmThe Schrodinger equation is deterministic.Terrapin Station wrote: ↑Tue Feb 16, 2021 5:08 pmI wouldn't say that computers are deterministic systems, by the way.
At any rate, you can program computers to factor variable data, acquired while the program is executing, where it weights different options differently based on a heuristic that the programmer set up.
Re: How computer can decide?
I am not either. I think that everything is interconnected. But the computer approximately, with a very good degree, is a deterministic thing.Terrapin Station wrote: ↑Tue Feb 16, 2021 5:50 pmI'm not a realist on mathematics.bahman wrote: ↑Tue Feb 16, 2021 5:29 pmThe Schrodinger equation is deterministic.Terrapin Station wrote: ↑Tue Feb 16, 2021 5:08 pm
I wouldn't say that computers are deterministic systems, by the way.
At any rate, you can program computers to factor variable data, acquired while the program is executing, where it weights different options differently based on a heuristic that the programmer set up.
- Terrapin Station
- Posts: 4548
- Joined: Wed Aug 03, 2016 7:18 pm
- Location: NYC Man
Re: How computer can decide?
I wouldn't say that determinism is of "degrees."bahman wrote: ↑Tue Feb 16, 2021 6:13 pmI am not either. I think that everything is interconnected. But the computer approximately, with a very good degree, is a deterministic thing.
Re: How computer can decide?
Determinism is just an approximation.Terrapin Station wrote: ↑Tue Feb 16, 2021 6:18 pmI wouldn't say that determinism is of "degrees."
Re: How computer can decide?
It doesn't have to be deterministic.
https://en.wikipedia.org/wiki/Nondeterm ... rogramming
https://en.wikipedia.org/wiki/Nondeterm ... _algorithm
The most trivial example of a non-deterministic program is one which returns a random number. Same function - different result.
The problem then becomes one of asking: Is this function "Truly random", or are there some regularities in its behaviour?
https://en.wikipedia.org/wiki/Hardware_ ... r#Problems
Re: How computer can decide?
I was not asking about the random generators.Skepdick wrote: ↑Tue Feb 16, 2021 6:40 pmIt doesn't have to be deterministic.
https://en.wikipedia.org/wiki/Nondeterm ... rogramming
https://en.wikipedia.org/wiki/Nondeterm ... _algorithm
The most trivial example of a non-deterministic program is one which returns a random number. Same function - different result.
The problem then becomes one of asking: Is this function "Truly random", or are there some regularities in its behaviour?
https://en.wikipedia.org/wiki/Hardware_ ... r#Problems
Re: How computer can decide?
I asked how the "if" command works knowing the fact that the system is deterministic.
Re: How computer can decide?
IF is branching.
Code: Select all
if random_number() > 55:
print("Chicken dinner!")
else
print("Whatever!")
Re: How computer can decide?
I am interested in such a code:Skepdick wrote: ↑Tue Feb 16, 2021 8:14 pmIF is branching.
What do you think the above program will print out?Code: Select all
if random_number() > 55: print("Chicken dinner!") else print("Whatever!")
Code: Select all
if 65 > 55:
print("Chicken dinner!")
else
print("Whatever!")
Re: How computer can decide?
Are you asking about the circuit diagram for the > operator,
or the CMP command in the X86 instruction set.
https://c9x.me/x86/html/file_module_x86_id_35.html