• Ei tuloksia

Bit counting:

N/A
N/A
Info
Lataa
Protected

Academic year: 2022

Jaa "Bit counting:"

Copied!
2
0
0

Kokoteksti

(1)

1

0

1 0 0 1 0 1 1

1

0 0 0 0 1 1 0

0

0 0 1 0 0 1 1

0

0 0 0 0 1 0 0 = 4

= 1 + 3

= 1 + 0 + 1 + 2

= 1 + 0 + 0 + 0 + 1 + 0 + 1 + 1

Bit counting:

example

0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 1 +

0

0 0 0 0 0 1 0 + 0 0 0 1 0 0 0 1

0

0 0 0 0 0 1 1 + 0 0 0 0 0 0 0 1

Integer functions

„distant past: replace floating point calculations with integer manipulations

„present: who cares, because floating point operations are fast enough

„present and near future: what about mobile and light- weight platforms? should we revert to integer manipulations?

„future: who cares (even in light- weight platforms), because floating point operations will be fast enough

Low-level data structures

„ encapsulated implementations of fundamental data structures

„maintainability

„reusability

„reliability

„ however, unnecessary (or even unwanted) at the lowermost application layers

„communication buffers

„memory allocation

← efficiency!!

Outroduction

§1 Introduction

§2 Random Numbers

§3 Game Trees

§4 Path Finding

§5 Decision-Making

§6 Cheating Prevention

§7 Code Tweaking

The intention, huh?

„

to provide a glance into the world of computer games as seen from the perspective of a computer scientist

... and the topics were... 1(2)

„

Random Numbers

„if computers are deterministic, how to achieve indeterminism at all?

„

Game Trees

„given time and resources, how to solve perfect information games?

„

Path Finding

„observing the geography of the game world, how to get from one place to another?

(2)

2 ... and the topics were... 2(2)

„

Decision-Making

„being a synthetic participant on a game, how to interact?

„

Cheating Prevention

„if players are not trustworthy, how to ensure fairness?

„

Code Tweaking

„if feeling too clever by half, how to still code clever?

Model-View-Controller (re-revisited)

control logic

driver

proto-view

rendering state instance core structures

input device

action configuration

instance data

synthetic view synthetic

player

script output

device human player

options perception

model

view controller

player

rules goal

opponent

representation ag

reem ent

definition

motivation CHALLENGE

obstruction

indeterminism CONFLICT correspondence

concretization PLAY

Game =

def

? Bonus on grades

„

deadline for submissions: November 17, 2003 (= week before the first examination)

„

the winners (the ones to get a bonus on their grades) will be contacted personally via e-mail

„

thank you for all your comments (past, present and future)!

Examinations

„

the examination dates

1. November 24, 2003

2. February 2, 2004

3. March 29, 2004

„

check the exact times and places at http://www.it.utu.fi/opetus/tentit/

„

if you are not a student of University of Turku, you must register to receive the credits

„

remember to enrol!

Examination questions

„ based on both lectures and lecture notes

„ four questions, à 8 points

1. statements: true/false/—

2. short explanations

3. an essay

4. applying knowledge to a given problem

„ to pass the examination, at least 16 points (50%) are required

„ questions are in English, but you can answer in English or in Finnish

Viittaukset

LIITTYVÄT TIEDOSTOT

Second, a specific analysis used to solve a given problem needs to be reviewable afterwards in order see the values and knowledge used, and see how the user has arrived from the

„ „ all possible plays of two- all possible plays of two -player, perfect player, perfect information games can be represented with a information games can be represented with a

(One may wonder if the perfect information assumption is in contradiction with the Markov property since action for both players is de…ned on states where actions are available.

Implementing these observations theoretically, and deriving the exchange rate's perfect foresight path near long-run equilibrium, it is also demonstrated in this paper that the

The key question in our paper is how the individual players balance the bene…ts from observing other players’actions with the costs of delaying their stopping decision beyond what

§ Tällöin ”selvästi häiritsevän hajun” esiintymistiheys 3-9 % kokonaisajasta, riippuen hajun miellyttävyydestä. § ”selvästi häiritsevää” hajua ei

As the actual task the pupils had to 'solve two simplified arithmagons' (Figures 1c and 1d). Furthermore, they were asked to 'invent a method how you can always solve the

UN (2003), Integrated Environmental and Economic Accounting 2003, Handbook of National Ac- counting, Final draft circulated for information prior to official editing, United