Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

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

Various topics from lecture 7 of csci 100, including an example html file, unix commands like grep, find, wget, and unix process control. Additionally, it introduces decision making techniques such as utility theory, expected utility, decision trees, and games.

Typology: Slides

2012/2013

Uploaded on 04/24/2013

banani
banani 🇮🇳

4.3

(3)

91 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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