Docsity

Computing and Decision Making: Lecture 7 - HTML, Unix, and Decision Making Techniques, Slides of Artificial Intelligence

Toggle sidebar
bg1
1
CSCI 100
Think Like Computers
Lecture 7
Fall 2008
Example HTML File
•<html>
•<title> My Home Page </title>
•<body>
•<center><h2>Welcome!</h2></center>
•The text goes here …
•</body>
•</html>
Some More Unix
•grep (print lines matching a pattern)
•grep clark.edu ~/public_html/*.html
•ls –l | grep jpg
Find files
•find (search for files in a directory
hierarchy)
•find . –name “DSC*.jpg” –print
•find . –iname “DSC*.jpg” –print
•find ~/ -size +1000k
•find ~/ -ctime -2
Other
•wget (network downloader)
wget http://myhome.com/file/achive.zip
•date (get time)
•cal (calendar)
•ssh, sftp, ftp (remote access/file transfer)
Unix Process Control
•^C : interrupt
•^Z : suspend
•jobs (show jobs list)
•fg (bring to foreground – resume)
•bg (bring to background – resume)
•command &: run command at background
(most GUI programs)
•ps : process status
•kill process_id : terminate a process
Docsity.com
pf2

Partial preview of the text

Download Computing and Decision Making: Lecture 7 - HTML, Unix, and Decision Making Techniques and more Slides Artificial Intelligence in PDF only on Docsity!

CSCI 100

Think Like Computers

Lecture 7

Fall 2008

Example HTML File

  • My Home Page
  • Welcome!
  • The text goes here …

Some More Unix

  • grep (print lines matching a pattern)
  • grep clark.edu ~/public_html/*.html
  • ls –l | grep jpg

Find files

  • find (search for files in a directory hierarchy)
  • find. –name “DSC*.jpg” –print
  • find. –iname “DSC*.jpg” –print
  • find ~/ -size +1000k
  • find ~/ -ctime -

Other

  • wget (network downloader) Š wget http://myhome.com/file/achive.zip
  • date (get time)
  • cal (calendar)
  • ssh, sftp, ftp (remote access/file transfer)

Unix Process Control

  • ^C : interrupt
  • ^Z : suspend
  • jobs (show jobs list)
  • fg (bring to foreground – resume)
  • bg (bring to background – resume)
  • command & : run command at background (most GUI programs)
  • ps : process status
  • kill process_id : terminate a process

Docsity.com

Decision Making

  • Utility theory
  • MEU principle: make rational decisions
  • Lottery & Expected Utility
  • Expected Monetary Value / Risks
  • Information value
  • Decision tree

Decision Making

  • Games
  • Game theory: Minimax
  • Game trees
  • Games with chance
  • Gamble

Put Things to Work

  • Tic-tac-toe
  • chess
  • poker?
  • shopping
  • investment

In Real World

  • For most problems, it would be impossible to generate a full table/game tree/decision tree …
  • Need to apply techniques to: Š simplify the problem Š reduce the size Š use a compact representation Š generalize

Case Study: Video Game AI

  • Video games can be viewed as a testbed for AI
  • Entertainment
  • Building characters (for training)

Docsity.com