2 Pages

practice_test_2

Course: CS 3240, Fall 2008
School: Georgia Tech
Rating:
 
 
 
 
 

Word Count: 142

Document Preview

Test Practice 2 Question 1: Give a context-free grammar over ={0,1} that generates the following language: {w | w =wR , that is, w is a palindrome} Question 2: Consider the grammar S(L) | a L L , S | S 1. Find parse trees for the following sentences: 1. (a,a) 2. (a,(a,a)) 3. (a,((a, a),a),a))) 2. Construct the corresponding rightmost derivations of the sentences in (1). 3. Construct the corresponding leftmost...

Register Now

Unformatted Document Excerpt

Coursehero >> Georgia >> Georgia Tech >> CS 3240

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.
Test Practice 2 Question 1: Give a context-free grammar over ={0,1} that generates the following language: {w | w =wR , that is, w is a palindrome} Question 2: Consider the grammar S(L) | a L L , S | S 1. Find parse trees for the following sentences: 1. (a,a) 2. (a,(a,a)) 3. (a,((a, a),a),a))) 2. Construct the corresponding rightmost derivations of the sentences in (1). 3. Construct the corresponding leftmost derivations of the sentences in (2). Remove 4. left recursion. Question 3: Consider the following grammar SaAb | bBa | Ac | Bc AaBb | BbAa | 1. Compute the first and the follow set of the variables 2. Is this grammar LL(1)? Why or why not? Question 4: 0. E'E 1. EE+T 2. ET 3. Ta | b 1.Construct the DF...

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:

Georgia Tech - CS - 1301
CS 1301 Fall 2006 Homework 9 Python picked a peck of pickled peppersDue: Friday, November 10, 2006 at 6 PM ESTFiles to submit: hw9.pyFunctions to include in hw9.py: 1. printmatrix(matrix) 2. main(filename) For Help: Newsgroups see course sylla
Georgia Tech - CS - 2007
CS 1301 Fall 2006 Homework 9 Python picked a peck of pickled peppersDue: Friday, November 10, 2006 at 6 PM ESTFiles to submit: hw9.pyFunctions to include in hw9.py: 1. printmatrix(matrix) 2. main(filename) For Help: Newsgroups see course sylla
Georgia Tech - CS - 2261
StructuresOutline Introduction Structures typedef, Implementing Structures in C Arrays of StructuresStructuresStructures Recall Array is a collection of items that are all the same type Advantage.easy access (base + offset) Structure
Georgia Tech - CS - 4001
4001 Ethical InventoryRate your opinion about the following statement on the scaleNameM/F1 (Strongly disagree) . 2 (Disagree) . 3 (Unsure or neutral) . 4 (Agree) . 5 (Strongly agree) (A) What is most important? 1. Taking personal responsibilit
Georgia Tech - CS - 2006
Assumption: all variables originally hold the value 0. a) Consider the following sequence of operations: P1: W(x)1 W(x)3 P2: W(x)2 P3: R(x)3 R(x)2 P4: R(x)2 R(x)3 Is this execution causally consistent? Add or modify an event to change the answer. b)
Georgia Tech - CS - 4210
Assumption: all variables originally hold the value 0. a) Consider the following sequence of operations: P1: W(x)1 W(x)3 P2: W(x)2 P3: R(x)3 R(x)2 P4: R(x)2 R(x)3 Is this execution causally consistent? Add or modify an event to change the answer. b)
Georgia Tech - CS - 2200
CS 2200Memory HierarchyOur Road MapProcessor Memory Hierarchy I/O Subsystem Parallel Systems NetworkingPagingPhysical Me ory mC PU42356256356pagetable 42 256Where is the page table?PagingPhysical Me ory mC PU42356256
Georgia Tech - CS - 2200
PRS for Kishore's lecture for Feb 15, 2005Q1. (30 secs) Upon an interrupt the following has to happen implicitly in hardware before control is transferred to the handler 1. Current PC has to saved in some known place 2. The registers have to be sav
Georgia Tech - CS - 3240
Homework 7CS3240 - Fall 2005No Due Date. Will not be graded.Working with Turing Machines (TMs): Do problems 3.1.d and 3.8.b from the Sipser book.Variations of TMs and their power: Problem 3.10 from the Sipser bookClosure of operation
Georgia Tech - CS - 1321
CS 1321 Your Name: Signature: TA's Name:Exam 1Friday, Sept 16, 2005INTEGRITY: By taking this exam, you pledge that this is your work and you have neither given nor received inappropriate help during the taking of this exam in compliance with th
Georgia Tech - CS - 1321
1. 15 points Function average. Write a function that is called average taking one array of numbers as the single parameter. The objective is to return the average of the numbers found in the array. Dont forget to return the average (the result) from
Georgia Tech - CS - 1321
CS 1321, Fall 2005Exam 3Friday, Dec 2, 2005Your Name: Signature: TAs Name: INTEGRITY: By taking this exam, you pledge that this is your work and you have neither given nor received inappropriate help during the taking of this exam in compliance
Georgia Tech - CS - 1321
Hello world!
Georgia Tech - CS - 2003
Perceptual Basis for BehaviorBased ControlBehavior-based Robotics CourseBehavior-Based Robotics1Objectivessss ssUnderstand the relationship between perception and action Use biology to inform design of perceptual algorithms Recognize
Georgia Tech - CS - 4803
Perceptual Basis for BehaviorBased ControlBehavior-based Robotics CourseBehavior-Based Robotics1Objectivessss ssUnderstand the relationship between perception and action Use biology to inform design of perceptual algorithms Recognize
Georgia Tech - CS - 4440
PROJECT TOPIC PREFERENCEWe would like to receive your preference for two topicsunder which you would like to carry out a team projectto study a product family.The study will encompass:- a list of major products and their features- how the
Georgia Tech - CS - 2002
Homework 4 (due 4/22/2002)Assumption: all variables originally hold the value 0. Answer the ones we didnt do in class. 1. Consider the following sequence of operations in a distributed shared memory system:P1: W(x)1 P2: P3: P4: W(x)3 W(x)2 R(x)3 R(
Georgia Tech - CS - 4210
Homework 4 (due 4/22/2002)Assumption: all variables originally hold the value 0. Answer the ones we didnt do in class. 1. Consider the following sequence of operations in a distributed shared memory system:P1: W(x)1 P2: P3: P4: W(x)3 W(x)2 R(x)3 R(
Georgia Tech - CS - 1371
Given the following code, write in the blanks below the value of Color_vals when each function call is run. function Color_vals = myFunc(Colors) Color_vals = {}; for aa = 1 : length(Colors) if Colors (aa) < 3 Color_vals {aa} = 'red'; elseif Colors (a
Georgia Tech - CS - 1371
CS1371 Computing for Engineers Final Exam Version CDecember 12th, 20054. Plotting (20 points)Write a Matlab function plop.m that 1. Consumes a. A vector X containing two numbers which specify the domain of the function. The first number in the v
Georgia Tech - CS - 1371
CS1371 Final Exam Version 3May 3rd, 2006Problem 8 Matrices [20 pts]MI5 wants to use MATLAB to send coded messages as digital images. Write the function imageEncode that consumes a string and a file name. The function will write to that file a
Georgia Tech - CS - 1371
CS1371 - Computing for Engineers Test 3 Version Czeros(rows, cols) generate a matrix filled with 0April 18th, 2007Problem 1 Sorting [25 Points]I. While performing a card trick with a special deck of cards, you accidentally drop all the cards
Georgia Tech - CS - 1371
CS1371 - Computing for Engineers Test 2 Version AJune 27th, 20071. Which of the following are the true statements about meshgrid ? A. It creates a three dimensional array. B. It can only take in two vectors of the same length. C. The two returned
Georgia Tech - CS - 1371
CS1371 - Computing for Engineers Final Exam Version EMay 3rd, 2007Problem 1 Sorting [20 Points]I. What does the Big-O of any algorithm represent? _ __II.Write out the Big-O of the following sorting algorithms: a. b. c. d. Insertion Sort: Me
Georgia Tech - CS - 1371
CS1371 - Computing for Engineers Final Exam Version DMay 3rd, 2007Problem 1 Sorting [20 Points]I. What does the Big-O of any algorithm represent? _ __II.Write out the Big-O of the following sorting algorithms: a. b. c. d. Insertion Sort: Me
Georgia Tech - CS - 1371
CS1371 Computing for Engineers Final Exam Version CDecember 12th, 20055. Sorting (20 points)Give the Big O values for the following sorting algorithms: mergesort: quicksort: insertion sort: Which of the algorithms above is the fastest? Under wha
Georgia Tech - CS - 1371
CS1371 - Computing for Engineers Test 3 Version Dzeros(rows, cols) generate a matrix filled with 0April 18th, 2007Problem 1 Sorting [25 Points]I. While performing a card trick with a special deck of cards, you accidentally drop all the cards
Georgia Tech - CS - 1371
CS1371 Final ExamAugust 3rd, 2006Problem 4 Graphs [20 pts]Consider the following graph:1. Use a Breadth-First Search to find a path between A and E in the graph above. You must consider the next nodes in increasing alphabetical order. List t
Georgia Tech - CS - 1371
CS1371 - Computing for Engineers Exemption ExamJanuary 11th, 2007Problem 7 Plotting [20 Points]1. Circle all of the following functions that can be used to plot a 3-dimensional surface in MATLAB. A. B. C. D. plot3(xx,yy,zz) meshgrid(xx,yy,zz) s
Georgia Tech - CS - 1371
CS1371 Final Exam Version 1May 2nd, 2006Problem 9 Recursion [20 pts]You are working for the CIA, and you receive an encrypted message. You know that in order to find the real meaning of the code you must do the following changes: 1. Every plac
Georgia Tech - CS - 1371
CS1371 - Computing for Engineers Test 2 Version AOctober 25th, 2006Problem 1 - Multiple Choice Questions [20 Points]2. Which one of the following lines will produce an error in MATLAB? A. B. C. D. E. double('hello') + 5 'computer' > 'g' double(
Georgia Tech - CS - 3411
FINAL EXAM name_CS 3411B Programming Language Concepts Spring 99 Georgia Tech/Computer Science Phillip HuttoThis exam is closed-book. There is no penalty for wrong answers and partial credit will be given. Guessing is a good strategy if you thin
Georgia Tech - EAS - 8803
Global Change Biology (2007) 13, 679706, doi: 10.1111/j.1365-2486.2006.01305.xModelling the role of agriculture for the 20th century global terrestrial carbon balance A L B E R T E B O N D E A U *, P A S C A L L E C . S M I T H *1 , S O N K E Z A
Georgia Tech - MPG - 08
8/24/08!Games are serious business! Facts from www.esa.org:! $7.4 billion revenues in 2006! Average player is 33 years old and! has been playing for 12 years! 36% percent of American parents play computer! 80% percent of gamer parents play wit
Georgia Tech - ECE - 6450
Georgia Institute of Technology School of Electrical and Computer EngineeringECE 6450 Introduction to Microelectronics TechnologyInstructor: Dr. Alan Doolittle Office: Microelectronics Research Center, Pettit Bldg, room 209 Work: 404 894-9884 Home:
Georgia Tech - ECE - 3040
Georgia Tech - ECE - 3080
Lecture 3bBonding Model and DopantsReading: (Contd) Notes and Anderson2 sections 2.3-2.7Georgia TechECE 3080 - Dr. Alan DoolittleThe need for more control over carrier concentrationWithout help the total number of carriers (electrons and
Georgia Tech - ECE - 3040
Lecture 4 Density of States and Fermi Energy Concepts Reading: (Cont'd) Pierret 2.1-2.6Georgia TechECE 3040 - Dr. Alan DoolittleHow do electrons and holes populate the bands?Density of States Concept Quantum Mechanics tells us that the number
Georgia Tech - ECE - 4435
F E A T U R EBACKGROUND IMAGE DIGITAL VISIONT22he history of control is entwined with the history of analog computing. Many of the tools, technologies, and theories of control were enabled by, or are directly descended from, mechanical and el
Georgia Tech - ECE - 3050
CE - CC Amplier ExampleFor the circuits in the gure, it is given that V + = 10 V, V = 10 V, Rs = 5 k, R1 = 100 k, R2 = 120 k, RE1 = 2 k, R3 = 51 , RC = 2.4 k, RE2 = 2 k, RL = 1 k, VBE = 0.65 V, VT = 0.025 V, = 0.99, = 99, rx = 20 , and r0 = 50 k.
Georgia Tech - ECE - 3050
Copyright 2008. W. Marshall Leach, Jr., Professor, Georgia Institute of Technology, School of Electrical and Computer Engineering.Common-Drain Amplifier ExampleK prime V plus RS 0.002 W 1 L 1 V TO 5 . 10 5 . 103 61.75 1 . 1060.01624 3 .
Georgia Tech - ECE - 3050
c Copyright 2008. W. Marshall Leach, Jr., Professor, Georgia Institute of Technology, School of Electrical and Computer Engineering.The FET Dierential Amplier Basic CircuitFig. 1 shows the circuit diagram of a MOSFET dierential amplier. The tail
Georgia Tech - ECE - 4435
Georgia Tech - ECE - 4110
Georgia Tech - ECE - 4110
Georgia Tech - ECE - 4112
Georgia Tech - ECE - 4110
Georgia Tech - ECE - 4112
Georgia Tech - ECE - 2030
ECE2030A Fall 2008 Georgia TechProf. H.-H. S. Lee Page 1 of 8ECE2030A Fall 2008 Introduction to Computer Engineering Exam #350 min in-class exam. Close books, close notes. NO calculator.This exam is given under the Georgia Tech Honor Code Syst
Georgia Tech - MPG - 08
Bloom effect - beforePostprocessing Prof. Aaron Lanterman School of Electrical and Computer Engineering Georgia Institute of Technologyhttp:/creators.xna.com/en-us/sample/bloom2Bloom effect - afterMotion blur in Valves Portal - rollhttp:/cr
Georgia Tech - GTG - 460
David H. Friedmanfriedman@gatech.eduOBJECTIVE: WORK HISTORY:906 Briarcliff Rd., Apt 7 Atlanta, GA 30306 770-826-9666Seeking work in the field of Electronic Control Systems Engineering Graduate Research Assistant at GTRI Researched optics develo
Georgia Tech - GTG - 460
Aircraft Pitch Control Using an Adaptive Controller with Projection Based Disturbance Rejection and Drift Avoidance David Friedman ECE6554 4/25/2008Introduction: Classical control methods require a near complete understanding of how the plant works
Georgia Tech - GTG - 460
AIRCRAFT PITCH CONTROL USING AN ADAPTIVE CONTROLLER WITH PROJECTION BASED DISTURBANCE REJECTION AND DRIFT AVOIDANCEDavid FriedmanPitch ControlInput: elevator deflection angle (delta sub e) Output: pitch angle (theta)Assumptions Airpl
Georgia Tech - ECE - 3090
ECE3090Summer Semester, 2007Bresenham's AlgorithmBresenham's MidPoint Line Algorithm. We could easily design an algorithm to draw a line, using floating point values for the slope of the line, and then rounding to an integer to set the appropri
Georgia Tech - ECE - 3090
ECE3090Summer Semester, 2007Project 4 Image Noise FilteringAssigned: June 22, 2007 Due: July 5, 2007, 11:59pmIntroduction. High frequency signal noise is often a problem in real-world applications. For example, this noise manifests itself as
Georgia Tech - ECE - 2040
RC and LR AnalysisECE2040 Summer 2007School of Electrical and Computer Engineering ECE2040 Dr. George F. Riley Summer 2007, GT Lorraine RC and LR AnalysisA capacitor has the following characteristics: 1 dv(t) v(t) = i(t) = C dt C The energy in
Georgia Tech - CS - 2004
Towards an Active Network Architecture: An EpilogueDavid Wetherall (djw@cs.washington.edu) University of Washington May 2002.The State of Active NetworksSoftnet AS1 Plugins ACTIVE IP ANTS M PLAN PAN ?Vision9697989900 0xThe Active
Georgia Tech - CS - 2008
TreadMarksMain Takeaways Distributed Shared Memory Relaxed Consistency ModelWhy Distributed Shared Memory collaborative or concurrent applications use two main mechanisms to communicate or synchronize: message passing (send/receive) or shared
Georgia Tech - CS - 6210
TreadMarksMain Takeaways Distributed Shared Memory Relaxed Consistency ModelWhy Distributed Shared Memory collaborative or concurrent applications use two main mechanisms to communicate or synchronize: message passing (send/receive) or shared
Georgia Tech - CS - 2008
User-Level IPC for SMPs based on paper User-level Interprocess Communication for Shared-Memory Multiprocessors, Bershad et al. mixed discussion about user-level threads and user-level RPCCross address space callsdata transferMT clientMT serv
Georgia Tech - CS - 4210
User-Level IPC for SMPs based on paper User-level Interprocess Communication for Shared-Memory Multiprocessors, Bershad et al. mixed discussion about user-level threads and user-level RPCCross address space callsdata transferMT clientMT serv