6 Pages

Quiz1-2007_Solution

Course: CS 6367, Fall 2009
School: U. Houston
Rating:
 
 
 
 
 

Word Count: 937

Document Preview

COSC Quiz1 6367 Evolutionary Programming Tu., Feb. 20, 2007 Your Name: Your SSN: Problem 1 --- Selection and Survival of the Fittest [11]: Problem 2 --- ES and Rechenberg's Rule [8] Problem 3 --- Crossover and Mutation [9] Problem 4 --- Genetic Programming [8] Problem 5 --- Genetics [8] Problem 6 --- Questions [9]: [53] : Grade: The quiz is "open books and notes" and you have 75 minutes to...

Register Now

Unformatted Document Excerpt

Coursehero >> Texas >> U. Houston >> CS 6367

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
COSC Quiz1 6367 Evolutionary Programming Tu., Feb. 20, 2007 Your Name: Your SSN: Problem 1 --- Selection and Survival of the Fittest [11]: Problem 2 --- ES and Rechenberg's Rule [8] Problem 3 --- Crossover and Mutation [9] Problem 4 --- Genetic Programming [8] Problem 5 --- Genetics [8] Problem 6 --- Questions [9]: [53] : Grade: The quiz is "open books and notes" and you have 75 minutes to complete the quiz; it will count approx. 11% towards the overall course grade. 1 1) Selection / Survival of the fittest [11] a) Assume 3-tournament selection is used in an EC system with a population size of 100. What is the probability that the worst population member is selected for reproduction (assume, no fitness ties)? What is the probability that the best individual is selected for reproduction? Giving the formula is fine![3] With replacement: Worst: Best: (1/100) ^ 3 1 (1 1/100)^3 = 1 (99/100)^3 Without replacement: Worst: 0 Best: 1 (99/100)*(98/99)*(97/98) b) Compare k-tournament selection with roulette wheel selection. What are the major differences between the two selection methods? [4] According to Eiben p. 62, roulette wheel can be used with either a fitness-based or ranking selection distribution (e.g. SUS). A difference between k-tournament and roulette wheel is that roulette wheel requires determination of global population statistics. K-tournament performs a ranking amongst the selected k individuals. Also, ktournament is explicitly rank-based, while roulette wheel is potentially fitnessproportional. Selection pressure can be regulated in k-tournament based upon choice of k, while with roulette wheel manipulation of the distribution is necessary for the same purpose. c) Assume you use a fitness function f(x) (x is the solution that is evaluated by the fitness function) in conjunction with roulette wheel selection, and when running your EC system you observe that the population converges quite prematurely ("too much selective pressure"). What could be done to alleviate the problem? [2] Scaling of the fitness function to reduce the spread between most and least-fit individuals alleviates the problem. Examples: sqrt(f(x)), log(f(x)), etc. d) EC are based on Darwinian evolution. How is "survival of the fittest" simulated in the ES approach? [2] Because all individuals are eligible parents in ES, survival of the fittest is simulated by survivor selection: the killing off of less-fit offspring. 2 2) ES and Rechenberg's Rule [8] a) Explain how Rechenberg's 1/5 rule works! How does a system behave following the rule if it is near the top of a hill? How does it behave if it is on a plateau (an area were all fitness values are the same)? How does it behave if it is on the foot of a big hill? [5] Eiben3.ppt Slide 6 describes Rechenberg's rule p = ratio of mutations in which child is fitter than the parent Near the top of the hill On a plateau Foot of big hill p < 1/5 p < 1/5 p > 1/5 decrease decrease increase b) ES systems change the variance of their employed mutation operator during the evolution process. Why are they doing that? [3] The changing variance of the mutation operator facilitates the self-adaptation ES of systems. The variance adapts to fit the topology of the changing fitness landscape, to direct the search in directions which are more advantageous. 3) Crossover and Mutation [9] a) What role does a crossover operator play in a GA system? What role does a mutation operator play in a GA system? [4] Eiben3.ppt Slide 19 (summarized) Crossover - exploration Mutation - exploitation b) Assume you have an ES system that solves a 2-dimensional optimization problem, whose initial solutions consist of (0,2), (2,2), (2,0), and (1,1) population size 4 and your system employs whole arithmetical recombination (see page 51 of our textbook; also called arithmetical crossover in the lecture) as its only modification operator. What solutions will be searched, which solutions will not be searched by the described system? [5] The 4 points can be considered as boundary points of a convex hull. Arithmetical crossover explores those points which lie inside this boundary. Solutions not searched are points which are external to the area. 3 4) Genetic Programming [8] a) What are the major applications for genetic programming? [4] Machine learning (classification, model building, prediction) Symbolic regression Evolving programs b) In genetic programming the size of solutions can change. Is this, in general, desirable? Give a reason for your answer! [2] This is desirable. Because there is no prescribed or known size for good solutions of a genetic programming problem, it is advantageous for the EC system to search through many different solution sizes. c) GP faces the problem of bloating (survival of the fattest). Propose one approach to alleviate the problem of bloating. [2] Bloating can be alleviated by these methods: 1) Introduce a maximal size, prohibit variation operators from exceeding this size for generated offspring. 2) Parsimony pressure: introduce a penalty term in the fitness formula that penalizes being oversized 4 5) Genetics [8] a) How is reproduction in human beings different from traditional GA systems that, let us say, employ one point crossover on a single-stranded bitstrings? Be specific![5] Human genetic code exists in diploid not haploid form. In humans the combination of genetic material from the 2 parents occurs without crossover (haploids align). Crossover in humans occurs in meiosis. This process differs from one point crossover on single-stranded bitstrings, in the replication of the diploid strands and in that 2 out of 4 haploids exchange genetic material. b) Define phenotype and genotype! Which operators in a GA system operate on the genotype? [3] Phenotype candidate solutions in the original problem context, external characteristics Genotype the genetic representation of a phenotype, in an evolutionary computing system Operators in a GA system on the genotype: crossover, mutation 5 6) Questions [9] a) EC systems search probabilistically for good solutions. What advantages you see in using probabilistic algorithms over determinic algorithms for solving complex search problems? [5] b) Under which circumstances is it desirable to use a steady state EC approach, in contrast to generating a new population from scratch all the time? [4] 6
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

U. Houston - CS - 4368
Grades 4368 in Spring 2008 MT1 MT2 Final Weighted-Exam Average 4368-Grade 1644 80 70 66 70.94 C+hell 80 69 60 67.95 C+0281 81 89 83 84.10 B+
U. Houston - CS - 6340
2005 Exams COSC 6340 Number GradesIDENT EX0 MT FINAL3175 89 909111 83 86smvb 88 931979 83 771818 71 -abab 90 740102 85
U. Houston - CS - 3480
Grading COSC 3480 Fall 2005 CodeName EX1 EX2 FIN PRO Score Grade qlwr 75 80 66 74 72.86 C+ XTRM 87 90 75 86 83.6 B+ IECO 96 92 98 100 97.24
U. Houston - CS - 4350
Dr. Christoph F. Eick COSC 4350 ASSIGNMENTS Spring 1997 Remark: The file will be
U. Houston - CS - 3480
Computation of the Overall Score COSC 3480P0' = P0*5 - 5P1' = if P1&gt;93 then 2*P1 - 100 else 0.8*P1 + 12P2' = 1.5*P2 + 12P3' = if P3&gt;93 then 2*P3 - 100 else 0.8*P3 + 12H' = H+3
U. Houston - CS - 6367
Review List Final Exam COSC 6367:The final exam is scheduled for Th., May 10, 2-4p in our class room and will be &quot;open everything&quot;; at least 80% of the material covered in the exam will center on material that was covered in the COSC 6367 lecture
U. Houston - CS - 6367
Learning Classifier Systems: A Brief IntroductionLarry BullFaculty of Computing, Engineering &amp; Mathematical Sciences University of the West of England Bristol BS16 1QY, U.K. Larry.Bull@uwe.ac.uk[Learning] Classifier systems are a kind of rule-bas
U. Houston - CS - 4368
Uncertainty Management1. Fuzzy Logic 2. Dempster/Shafer's Theory of evidence 3. Interval Approaches1Fuzzy SetLet X denote a space of objects. definition: A fuzzy set A in X is a set of ordered pairs A = {(x, A (a)}, xX where A (x) is termed the
U. Houston - CS - 6367
Optimal Solutions to Dr. Eick's Linear Programming ProblemsPaul J. Ledbetter III February 15, 2007In the forthcoming project for Dr. Eick's Evolutionary Programming class, our goal is to minimize the total cost for a particular transportation probl
U. Houston - CS - 4368
Artificial Intelligence: Its Roots and Scope1.1 From Eden to ENIAC: Attitudes toward intelligence, Knowledge, and Human Artifice 1.2 Overview of AI Application Areas 1.3 1.4 1.5 Artificial Intelligence A Summary Epilogue and References ExercisesG
U. Houston - CS - 4368
Artificial Intelligence Programming COSC 4368 Midterm Exam1 Solution Sketches Tuesday, February 26, 2008Name: SSN:1.Curve: round (79.5+ (9.5/6*(x29.5)Best First Search and A* (8 points) 2. Backtracking (8 points) 3. Playing Games (8 points) 4.
U. Houston - CS - 6367
Quiz1 COSC 6367 Evolutionary Programming Th. Feb. 21, 2008 Solution DraftYour Name: Your SSN:Problem 1 - Selection and Survival of the Fittest [14]: Problem 2 - ES [10] Problem 3 - Crossover and Mutation [10] Problem 4 - Genetic Programming [9] Pr
U. Houston - COSC - 4377
COSC 4377, Fall 200011/27/00LAN Addresses and ARPIP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node LAN interface s card (adapter card) on the local LAN 48 bit MAC a
U. Houston - COSC - 4377
Slides from TCP/IP - ForouzanChapter 16DNS Name Space Domain Name Space Distribution of Name Space DNS in the Internet Resolution DNS Messages Types of Records CompressionCOSC 6377 - Fall 2000 16-1Forouzan NotesFigure 16-1Domain na
U. Houston - COSC - 4377
Slides from TCP/IP - ForouzanChapter 4IP Addressing Decimal Notation Classes Special Addresses A Sample Internet Unicast, Multicast, and Broadcast Addresses Applying for IP Addresses Private NetworksCOSC 6377 - Fall 2000 4-1Forouzan Not
U. Houston - COSC - 4377
COSC 4377, Fall 200011/20/00Link Layer Protocols1Link Layer Services Framing and link access: m encapsulate datagram into frame adding header and trailer, m implement channel access if shared medium, m` physical addresses'are used in frame h
U. Houston - COSC - 4377
COSC 4377, Fall 200011/2/00Routing in the InternetThe Global Internet consists of Autonomous Systems (AS) interconnected with each other:r r rStub AS: small corporation Multihomed AS: large corporation (no transit) Transit AS: providerT
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Socket Programming1/29/01Socket programmingGoal: learn how to build client/server application that communicate using sockets Socket API introduced in BSD4.1 UNIX,socketa host-local, applicationcreated/owned, OS-contr
U. Houston - COSC - 4377
COSC 4377, Spring 2001, RPC - Supplement2/27/01Remote Procedure CallOutlineProtocol Stack Presentation Formattingbased on section 5.3 of Peterson &amp; Davies bookPeterson &amp; Davie 1RPC TimelineClientReque stServer BlockedBlockedReplyC
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter 3a10/10/00Chapter 3: Transport LayerChapter goals: understand principlesChapter Overview:behind transport layer services:r transport layer services multiplexing/demultiplexing connectionless transport: UD
U. Houston - COSC - 4377
COSC 4377, Fall 200011/27/00Hubs, Bridges, and Switches (oh my)Used for extending LANs in terms of geographical coverage, number of nodes, administration capabilities, etc. Differ in regards to:r rcollision domain isolation layer at which t
U. Houston - COSC - 4377
Slides from TCP/IP - ForouzanChapter 24Socket Interface Sockets Socket System Calls Connectionless Iterative Server UDP Client-Server Programs Connection-Oriented Concurrent Server TCP Client-Server ProgramsForouzan NotesCOSC 6377 - Fal
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 4b4/4/01IP datagram formatIP protocol version number header length (bytes) &quot;type&quot; of data max number remaining hops (decremented at each router) upper layer protocol to deliver payload to 32 bits ver head. type o
U. Houston - COSC - 4377
Slides from TCP/IP - ForouzanChapter 5Subnetting and Supernetting Subnetting Masking Examples of Subnetting Variable-Length Subnetting SupernettingForouzan NotesCOSC 6377 - Fall 20005-1Figure 5-1A network with two levels of hierarc
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 2, Part A9/18/01chapter 2: Application LayerChapter goals:conceptual + implementation aspects of network application protocols m client server paradigm m service models r learn about protocols by examining popul
U. Houston - COSC - 4377
COSC 4377, Spring 20011/24/01Protocol &quot;Layers&quot;Networks are complex! many &quot;pieces&quot;: r hosts r routers r links of various media r applications r protocols r hardware, softwareIs there any hope of organizing structure of network? Or at least our
U. Houston - COSC - 4377
COSC 4377, Spring 20011/22/01Part I: IntroductionChapter goal: get context, overview, &quot;feel&quot; of networking more depth, detail later in course approach: r descriptive r use Internet as example Overview: what' the Internet s what' a protocol?
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 5b4/4/01LAN technologiesData link layer so far:rNext: LAN technologiesrservices, error detection/correction, multiple accessaddressing r Ethernet r hubs, bridges, switches r 802.11 r PPP r ATM5: DataLink
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 2, Part A1/29/01Chapter 2: Application LayerChapter goals: conceptual +implementation aspects of network application protocolsrMore chapter goals specific protocols:r r r r rhttpclient server paradigm
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter 3b10/24/00TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581point-to-point:rone sender, one receiverfull duplex data:rreliable, in-order byte steam:rrpipelined:rno message boundaries TCP conges
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter18/29/00Part I: IntroductionChapter goal: get context, overview, feel of networking more depth, detail later in course approach: r descriptive r use Internet as example Overview: what the Internet s what a prot
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter 4a10/26/00Chapter 4: Network LayerChapter goals: understand principlesChapter Overview:behind network layer services:r r r r network layer services routing principle: path instantiation androuting (pat
U. Houston - COSC - 4377
COSC 4377, Spring 20018/29/01Part I: IntroductionChapter goal: r get context, overview, &quot;feel&quot; of networking r more depth, detail later in course r approach: m descriptive m use Internet as example Overview: r what' the Internet s r what' a prot
U. Houston - COSC - 4377
COSC 4377, Fall 2000 - Chapter 2 Part B9/25/00DNS: Domain Name SystemPeople: many identifiers:rSSN, name, Passport #Domain Name System: distributed databaseInternet hosts, routers:rrIP address (32 bit) used for addressing datagrams
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 74/24/01Chapter 7: Network securityFoundations: Security in practice:what is security? cryptography authentication message integrity key distribution and certificationapplication layer: secure e-mail
U. Houston - COSC - 4377
COSC 4377, Spring 2001 - Chapter 5a4/4/01Chapter 5: The Data Link LayerOur goals: understand principlesOverview:behind data link layer services:r link layer services error detection, correction multiple access protocols andrr rer
U. Houston - COSC - 4377
Part I : I ntroductionC hapte goal: r ge conte ove w, &quot;fe l&quot; t xt, rvie e of ne tworking m de ore pth, de late in tail r course approach: r de scriptive r useI nte t as e rne xam ple Ove w: rvie what's theI nte t rne what's a protocol? ne twor
U. Houston - COSC - 4377
Errata=We all occasionally make mistakes. We're proud of the quality of ourtextbook, but in a first edition book with more than 700 pages, a coupleof typos are bound to slip in. The errata below lists the mistakes thatwe'll fix in the next pr
U. Houston - COSC - 6377
COSC 6377, Fall 200011/2/00HTTP Protocol, Proxy,andCOSC 6377 Term Project TutorialT. Mark Huang http:/www.cs.uh.edu/~jsteach/cosc6377/The Web: the http protocolhttp: hypertext transfer protocol Web application layer s protocol client/ser
U. Houston - COSC - 2
CS 4310 Programming Exercise Building a ParserDue Date: Midnight, Monday, Oct 23 Using bison, you are to write a parser for a subset of Pascal. A grammar for this language appears below: start block procdcls procdcl parmlist parms parm variables var
U. Houston - COSC - 4310
CS 4310 Programming Exercise Building a ParserDue Date: Midnight, Monday, Oct 23 Using bison, you are to write a parser for a subset of Pascal. A grammar for this language appears below: start block procdcls procdcl parmlist parms parm variables var
U. Houston - COSC - 4377
FAQ for Assignment #4, COSC 4377, Fall 2000Last update: Nov. 22, 20001) Do we have to use select()? [11/13/2000]A: No. I planned to use select() for this assignment. After I ran some sample programs and found that recvfrom() can take more t
U. Houston - COSC - 4377
COSC 4377, Fall 2000HW2HW2HW2UIDHW1discprogtotalHW3HW4MT#1MT#2FinalTotal===========ABE181201141349819570548274.80AKM8100451401859620070526272.05ASM269451071529818580427572.10BHM26620114
U. Houston - COSC - 4377
Bring a file under RCS control:RCS is a software tool for UNIX systems which lets people manage multiplerevisions of files. RCS saves all old revisions and does it in a spaceefficient way. Old revisions can be retrieved according to the revision
U. Houston - COSC - 4377
Bring a file under RCS control:RCS is a software tool for UNIX systems which lets people manage multiplerevisions of files. RCS saves all old revisions and does it in a spaceefficient way. Old revisions can be retrieved according to the revision
U. Houston - COSC - 4377
Chapter 4: Network LayerChapter goals: understand principlesOverview:selectionbehind network layer services:r r r r network layer services routing principle: path hierarchical routing IP Internet routing protocols instantiation andr
U. Houston - HW - 2
COSC 6318 Object-Oriented Analysis and DesignHomework #2Due: 5:15PM Feb. 28thFor the problem statement given below, 1. Draw a usecase diagram showing actors and usecases 2. Provide the flow of events for each use case, listing the basic paths
U. Houston - ASSIGN - 1
Assignment 1 Due Monday April 25th 6PM Homework #4 due Monday April 25th 6PM Feel free to ask any questions over the email. Please note that this is not a group effort. Assume that I am asked to write a middle tier (I am not required to writer the UI
U. Houston - HW - 3
Homework #3 Due April 19th 6PM in class. Name: _ Student ID: _A few problem statements are given below. For each one of them answer the following questions: (a). What creational pattern you may use to solve this problem? (b). Explain how you would
U. Houston - ASSIGN - 1
Assignment 1 Due Monday April 12th 6PM Online submission (Note: The online submission will refuse to accept assignments after the deadline You are asked to submit the assignment ahead of time and as many times as you please. Your last submission will
U. Houston - ASSIGN - 2
Assignment 2 email zip of all your code by 11:59PM May 9thThis is not a group project. Beware of the Academic Honesty Policy.Write a C+, Java or .NET program that will allow you to design a kitchen.The program presents a list of appliances you c
U. Houston - HW - 1
COSC 6318 HW1 Due Monday February 23th 5:45PM(Note. No late submissions will be accepted)Please turnin a hard copy in class. Remote students, please hand over thecopy to your remote site administrator by the deadline.Name: _ Student ID: _A
U. Houston - HW - 3
HW 3 Due April 18th 6PM1. What OO Design Principle is evident in the application of Iterator Pattern on different types of collections? 2. One major concern about implementing an interface to traverse through a collection is performance. Ho
U. Houston - HW - 1
COSC 6318 Object-Oriented Analysis and DesignSpring 2003Homework #1Due Feb. 19th 5:45PM in classDevelop the class diagram (in UML) for the following system. A &quot;draw&quot; utility program lets users draw several geometric objects on adiagr
U. Houston - HW - 4
HW4 Due Thursday April 30 7PM in classIn the Design Pattern text book on page 153, it reads&quot;(C+) you want to hide the implementation of an abstraction completelyfrom clients. In C+ the representation of a class is visible inthe class interface
U. Houston - HW - 4
Homework 4 hard copy due April 22 5:45PMAnswer these questions based on your solution to Assignment 1.1. Draw a UML diagram showing the classes and the relationships.2. How did you provide extensibility in your program. 3. What design pri
U. Houston - HW - 5
Homework #5: Due Monday May 1st in class.1. Draw UML diagram for your solution in Assignment 2 questions 1.2. Draw UML diagram for your solution in Assignment 2 questions 2.3. Explain what are the benefits and disadavantages, with reference to
U. Houston - ASSIGN - 1
Assignment 1. Hard copy due on April 21st 5:45PM.Submit copy of all code you write.Problem. The objective of this assignment is to practise the useof some design patterns. You first need to identify what patterns will be useful in the following
U. Houston - HW - 3
COSC 6397 Object-Oriented Analysis and DesignSpring 1999Homework #3 Due Monday April 12th in classThe objective of this homework is to practice Inheritance and Polymorphism with OCP, LSP and DIP in mind. Several ty
U. Houston - HW - 5
Due along with your Assignment 2.Mention five recommendations from extreme programming.For each, write one or two sentences explaining thebenefit of the recommendation.
U. Houston - ASSIGN - 2
COSC 6318 Assignment 2. Due May 5th during demoYou are asked to build a library or module (in a languageof your choice: Java or C+). Your module will primarily consist of a bunch of classes to determine some ones credibility. Thecredibility may