Guests are welcome to view our materials. To subscribe, edit, view raw markup, etc., you'll need to register for an account. Accounts are free (and will always be free) - your involvement helps us directly and indirectly (by demonstrating that our work matters to our funders...)
StartingPoints has more info.
OBJECTIVE
THE CONCEPT OF ROW MAJOR AND COLUMN MAJOR LAYOUT EMPHASIZE ON A MORE DEEPER LOOK INTO PYTHON.
ENCOURAGES TO CONVERT ABSTRACT MODELS INTO MORE CLEAR COMPREHENSIBLE CONCEPTS.
COLUMN MAJOR Vs ROW MAJOR
- If you view memory from the hardware perspective then there actually no 2-D memory.
- It is a 1-D memory . Therefore when we consider row-major and column major arrangements it is just the way we as users look at it.
- Row-major is an arrangement where the rows are stored one after the other and in case of column major it is the columns that are placed one after the other in a linear memory.
- Most of the programming languages like c/c++ use row-major layout or arrangement
- Fortran and MATLAB are popular examples of column-major arrangement.
PROPERTIES OF TASK ENVIRONMENTS (7.1)
| Observable |
Deterministic |
Episodic |
Static |
Discrete |
Agents |
| Partially |
Deterministic |
Sequential |
Static |
Discrete |
Single |
- The environment is partially observable as the agent can only see part of the environment.
- It is deterministic as the next state of the environment is completely determined by the current state of the agent and the action executed by the agent.
- It is sequential because the action the agent takes reflects on all of the future actions.
- The environment does not change at every instant.
- The environment has finite number of states.
- The agent is a single entity in wumpus world.
7.2
| Agent |
Percept |
Action |
Status |
| [1,1] |
Nothing |
Nothing |
OK |
| [2,1] |
Breeze |
l90,l90,Forward |
OK |
| [1,2] |
Stench |
Nothing |
OK |
| [2,2] |
NO Pit |
l90,l90,Forward Shoot |
OK |
Agent Syntax,Propositions,percepts and actions
Agent in a particular location or square A[i,j]
Wumpus in a particular location or square W[i,j]
Pit in a particular location or square P[i,j]
Gold particular location or square G[i,j]
If a wumpus is killed in a particular location or square W[i,j]
Percepts at a particular square [i,j]
[Stench, Breeze, Glitter, Bump, Scream][i,j]
If there is either a breeze or a stench from a particular square [i,j] then the agent perceives this from the adjacent square.
That is [i+1,j],[i,j+1] or [i-1,j],[i,j-1]
This is the case for a wumpus and a pit too.