Comparing Boolean and Probabilistic Information Retrieval Systems
Example of programming a quantum robot This program can be easily changed to the following types of...
-
Upload
hillary-richards -
Category
Documents
-
view
212 -
download
0
Transcript of Example of programming a quantum robot This program can be easily changed to the following types of...
![Page 1: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/1.jpg)
Example of programming a quantum robot
This program can be easily changed to the following types of control:1. Boolean Logic2. Fuzzy logic3. Probabilistic logic4. Ternary logic5. Mixed logic6. Your own control for any algebra you may want
![Page 2: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/2.jpg)
![Page 3: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/3.jpg)
• Review matrices and vectors• Review how to multiply matrix by vector• Review how to multiply matrix by matrix
![Page 4: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/4.jpg)
For loop flowchart
}
}
}
![Page 5: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/5.jpg)
start
i=0
Ostate[i]=0
j=0
j=j+1
j < 4
i < 4
i=i+1
External loop
Internal loop
For loop flowchart
yes
yes
no
no
![Page 6: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/6.jpg)
• Review quantum measurement• Review probability
![Page 7: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/7.jpg)
start
i=0
Ostate[i]=0
j=0
j=j+1
j < 4
i < 4
i=i+1
For loop flowchart
yes
yes
no
no end
![Page 8: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/8.jpg)
Initialize total
Calculate new value of total
Calculate value of output
oneCounter counts ones
![Page 9: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/9.jpg)
Calculate deterministic values of control variables P and Q
Continue of subroutine of interpreting the output state
Loop for oneCounter
![Page 10: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/10.jpg)
Translates output Boolean variables P and Q to actions of motors
Output Motion routine is for
motors
![Page 11: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/11.jpg)
Converts sensor reading to input variables a and b
Two light sensors and touch sensor
Two light sensors and touch sensor
Input routine is for sensors
![Page 12: Example of programming a quantum robot This program can be easily changed to the following types of control: 1.Boolean Logic 2.Fuzzy logic 3.Probabilistic.](https://reader035.fdocuments.in/reader035/viewer/2022070404/56649f385503460f94c55441/html5/thumbnails/12.jpg)
Main program links inputs, outputs and
brain (behavior)
input
brain
output
Intialize all