background is Slide("
Features of making construals
- Idempotence in entering definitions
- Focus on matching states and not behaviours
");
slideList is [background, shopslide1, shopslide2, shopslide3, shopslide4, shopslide5,
shopslide6, shopslide7, shopslide8];
shopslide1 is Slide("The Shopping construal
");
shopslide2 is Slide("
Assignments / definitions
- when items bought, the change is no longer determined by dependency
- certain assets are defined by dependency - e.g. a house, foreign currency
- Assignment as associated with suspending a task and storing the state needed to resume:
can't carry items out of the shop, so leave behind to be collected later, and label as
sold
");
shopslide3 is Slide("
Exercises
The status of the following observables depends on what I spend and what I buy.
Write definitions for the following observables:
- Whether I can afford the bus fare home
- The most valuable coin I have
- Whether I have the exact money for the items I want to buy
- Whether I can get a single coin in change
- How heavy my purse is
- Whether I have enough money to buy a set of items
- Whether a particular set of coins tendered is 'optimal' / 'intelligent' ... criteria
might be concerned with getting rid of as many coins as possible, getting fewer coins in the
change, not tendering coins that will be automatically returned to you
Other exercises:
- Normalise the content of your purse - i.e. replace two 50p pieces by a pound piece
etc
- Sort the coins in your purse and sort the items for sale in order of price. Can you
frame new definitions for what is affordable?
-
Reduce the number of coins in the purse
");
shopslide4 is Slide("
Games
- Coins from purse replenished at random (cf. Scrabble) - aim to purchase a particular
configuration of items (cf. threes)
- Both players have a purse, and you invite your opponent to buy a certain set of coins
from you, but keep the change.
- Bet on the total amount of money / distribution of coins in a randomly generated purse -
you are rewarded in some way for correct predictions and penalised for false (cf. fruit
machine)
- Making transactions in such a way as to achieve a certain target objective - such as all
coins being of the same denomination / all coins being of the same colour (bronze, silver,
gold)
- Players try to determine the content of the other players purse by asking questions
about what combinations of items they can afford, whether they can pay for these exactly
etc
");
shopslide5 is Slide("
Adapting the shopping construal
- Display key observables / express the state in natural language - as in:
You can['t] afford these items / any of these items / you can only afford the following
items
- how many of each item you can purchase with the cash in hand / afford
- Replenish items that are bought
- Automate giving change
- Link with greedy algorithm work
");
shopslide6 is Slide("
Tracking anomalies
- Coin is dud
- Bartering
- Discretionary sale - bruised apple etc
");
shopslide7 is Slide("
Answers
item1pic0 is
HTMLImage(\"item1pic\",scaleWidth*0.5,5.5*scaleWidth,scaleWidth,scaleWidth,imagelocation //
itemdisplay(1));
picture is [coin1pic, coin2pic, coin3pic, coin4pic, coin5pic, coin6pic, coin7pic, coin8pic,
item1pic, item1pic0, item2pic, item3pic, item4pic, item5pic, item6pic, coin1text, coin2text,
coin3text, coin4text, coin5text, coin6text, coin7text, coin8text, item1text, item2text,
item3text, item4text, item5text, item6text, PurseContentText, CoinsInHandText,
BasketContentText, ItemsForSaleText];
... and restoring original set up:
forget(\"item1pic0\");
picture is [coin1pic, coin2pic, coin3pic, coin4pic, coin5pic, coin6pic, coin7pic, coin8pic,
item1pic, item2pic, item3pic, item4pic, item5pic, item6pic, coin1text, coin2text, coin3text,
coin4text, coin5text, coin6text, coin7text, coin8text, item1text, item2text, item3text,
item4text, item5text, item6text, PurseContentText, CoinsInHandText, BasketContentText,
ItemsForSaleText];
");
shopslide8 is Slide("
Learning language
- Matching phrases to sequences of actions - \"X bought Y and Z\" etc
- Playing out a scenario specified in words
- Answering questions based on a scenario that is played out
");