4 Pages

Homework 2-Solutions copy

Course: MATH 137, Spring 2011
School: UCSB
Rating:
 
 
 
 
 

Word Count: 1845

Document Preview

2 SOLUTIONS (1) HOMEWORK Let G be a simple graph where the vertices correspond to each of the squares of an 8 8 chess board and where two squares are adjacent if, and only if, a knight can go from one square to the other in one move. What is/are the possible degree(s) of a vertex in G? How many vertices have each degree? How many edges does G have? Solution: A knight moves two squares horizontally and one square...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> UCSB >> MATH 137

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.
2 SOLUTIONS (1) HOMEWORK Let G be a simple graph where the vertices correspond to each of the squares of an 8 8 chess board and where two squares are adjacent if, and only if, a knight can go from one square to the other in one move. What is/are the possible degree(s) of a vertex in G? How many vertices have each degree? How many edges does G have? Solution: A knight moves two squares horizontally and one square vertically, or two squares vertically and one square horizontally, on a chessboard. By examining all possibilities, we see that; the four corner vertices of the graph have degree 2; the eight edge vertices that are next to the corners have degree 3; twenty vertices, the remaining 16 edge vertices plus four more that are next to the corners but not on the edge, have degree 4; sixteen vertices have degree 6; the remaining 16 interior vertices have degree 8. The preceding paragraph answers the rst two questions. For the last question we appeal to the Hand-Shaking Theorem. 1 1 dG (v ) = (4 2 + 8 3 + 20 4 + 16 6 + 16 8) = 168 |E (G)| = 2 2 v V (G) (2) Let G be a graph with n vertices and exactly n 1 edges. Prove that G has either a vertex of degree 1 or an isolated vertex. Solution: Another way to state this problem would be: Prove that G has at least one vertex of degree less than 2. We will prove this by contradiction, that is we will start out by assuming that the degree of each of the vertices of G is greater than or equal to 2. Under this assumption, the Hand-Shaking Theorem gives us 2n 2 = 2(n 1) = 2|E (G)| = v V (G) dG (v ) 2 + 2 + + 2 = 2n n times But this is clearly impossible. Therefore our assumption must be false and there must be at least one vertex that has degree less than 2. (3) Prove that if a graph G has exactly two vertices u and v of odd degree, then G has a u, v -path. Solution: We will prove the statement by contradiction. That is, we rst assume that G is a graph with exactly two vertices of odd degree, u and v , and that there is no u, v -path in G. 2 SOLUTIONS By denition, G is a disconnected graph and the vertices u and v must lie in separate connected components of G. Thus the vertex u lies in H , a connected subgraph of G, and all other vertices in H (which, of course, are also vertices in G) have even degree. Therefore, the sum of the degrees of the vertices in H is an odd number. But by the Hand-Shaking Theorem, the sum of the degrees of the vertices in H (as in any graph) must be an even number. So we have a contradiction and our assumption, that there is no u, v -path in G, must be false. (4) Let G be a simple graph. Show that either G or its complement G is connected. Solution: Let G be a simple graph that is not connected and let G be the complement of G. If u and v are vertices in G then they are also vertices in G. If u and v lie in separate connected components of G they are not adjacent in G. Therefore, they must be adjacent in G. Hence there exists a u, v -path in G. If u and v belong to the same connected component of G and w is a vertex in a dierent connected component of G, then both u and v are adjacent w in G. If e1 is the edge of G with endvertices u and w and e2 is the edge of G with endvertices w and v , then (u, e1 , w, e2 , v ) is a u, v -path in G. Since there exists a path between any two vertices of G it is a connected graph. (5) Are any of the graphs Nn , Pn , Cn , Kn and Kn,n complements of each other? Solution: Clearly, Nn , the simple graph with n vertices and no edges, and Kn the simple graph with n vertices and the maximal possible edges, are complements of each other when n > 1. By convention P1 = N1 , so P1 = N1 = N 1 = P 1 . Also, P2 = K2 , thus P2 and N2 are complements of each other. The complement of P3 is not connected and is clearly not the same as any of the graphs on the original list. The graph P4 is isomorphic to its complement (see Problem 6). In general, the graph Pn has n 2 vertices of degree 2 and 2 vertices of degree 1. Therefore P n has n 2 vertices of degree n 3 and 2 vertices of degree n 2. This rules out any matches for P n when n 5. For n = 1 or 2, Cn is not simple. So we dont talk about complements in those cases. Since C3 = K3 , C 3 = N3 . As C 4 is not connected it can not be identied with any of the original graphs. The graph C5 is its own complement (again see Problem 6). We now examine C n when n 6. The graph Cn is 2-regular. Therefore C n is (n 3)-regular. Now, the graph Nn is 0-regular and the graphs Pn and Cn are not regular at all. So no matches so far. The only complete graph with the same number of vertices as C n is n 1-regular. For n even, the graph K n , n does have the same number vertices of as C n , but it 22 is n-regular. Hence, we have no matches for the complement of Cn if n 6. HOMEWORK 2 3 We dont have to examine Kn,n (except perhaps to identify K1,1 with P2 ) since if it was a complement pair with any of the previous graphs on the list we would have already seen that. (6) Show that if a simple graph G is isomorphic to its complement G, then G has either 4k or 4k + 1 vertices for some natural number k . Find all simple graphs on four and ve vertices that are isomorphic to their complements. Solution: If G and G are isomorphic, they must have the same number of edges. However, the total number of edges in G plus the total number of edges in G equals n(n 1) the number of edges in the complete graph on n vertices, which is . Hence, 2 n(n 1) |E (G)| = . 4 This is only possible if n or n 1 is divisible by 4. They cant both be divisible by 4 since one will be odd. So, either n = 4k or n 1 = 4k for some natural number k . In the second case, n = 4k + 1. From the equation above, we see that if a simple graph on four vertices is isomorphic to its complement it must have exactly three edges. This, along with trial and error, shows that the only graph with this property is the path graph P4 . For the ve vertex case, we make heavy use of the graph-theoretic knowledge developed in class so far and quite a bit of logical reasoning. For a simple graph G on ve vertices: (a) The degree of any vertex is either 0, 1, 2, 3 or 4. (b) Since the number of edges must be 54 = 5, the sum of all vertex degrees must 4 be 10. (c) If G G, the vertex degrees (except for 2) appear in pairs. That is, for every = vertex of degree 4 there must be a vertex of degree 0 and for every vertex of degree 3 there must be a vertex of degree 1. This forces the number of vertices of degree 2 to be odd. Also, we can rule out vertices of degree 4 or 0, since in a simple graph on ve vertices if you have a vertex of degree 4 you cannot have a vertex of degree 0. By combining the above observations, we see that set of vertex degrees for a simple graph on ve vertices that is isomorphic to its complement is either {2, 2, 2, 2, 2}, {2, 2, 2, 3, 1} or {2, 3, 1, 3, 1}. With the rst set in mind, we see that C5 , the cycle graph on ve vertices, is isomorphic to its complement. A little more analysis allows us to rule out the second set. If a graph G has exactly one vertex of degree 3 and exactly one vertex of degree 1, then the same will be true for its complement. In fact, it will be the same vertices, with their degrees switched. But in one graph the degree 3 and degree 1 vertices will be adjacent and in the complement they will not. Therefore the graphs cannot be isomorphic. 4 SOLUTIONS This leaves us with the {2, 3, 1, 3, 1} case. With some experimentation, one gets the following example OOO OOO OOO O // tt // tt t // tt tt // tt t // tt t // tt // ttt tt O OOO Extra credit if you nd a case Ive missed! (7) The complete bipartite graphs K1,n , known as the star graphs, are trees. Prove that the star graphs are the only complete bipartite graphs which are trees. Solution: Let Km,n be a complete bipartite graph such that m, n > 1. For u1 , u2 , v1 , v2 V (Km,n ), let u1 and u2 be elements of the bipartition set of order m and v1 and v2 be elements of the bipartition set of order n. By denition of the complete bipartite graph, there exists an edge e1 with endvertices u1 and v1 , an edge e2 with endvertices u1 and v2 , an edge e3 with endvertices u2 and v1 and an edge e4 with endvertices u2 and v2 . Therefore c = {u1 , e1 , v1 , e3 , u2 , e4 , v2 , e2 , u1 } is a walk in Km,n with distinct vertices except for the initial and nal vertex, which are the same. That is, c is a cycle in Km,n . Hence, Km,n is not a tree. (8) A graph G is bipartite if there exists nonempty sets X and Y such that V (G) = X Y , X Y = and each edge in G has one endvertex in X and one endvertex in Y . Prove that any tree with at least two vertices is a bipartite graph. Solution: Proof by induction. The only tree on 2 vertices is P2 , which is clearly bipartite. Now assume that every tree on n vertices is a bipartite graph, that is, its vertex set can be decomposed into two sets as described above. Let T be a tree on n + 1 vertices. From class, we know that the vertex set of T contains a leaf, v . Furthermore, T = T v is a tree on n vertices. By the induction hypothesis, the vertex set of T can be decomposed into disjoint sets X and Y . Let w be the neighbor of v in T . Then w is also a vertex in the graph T . WLOG, assume that w X V (T ). Then X = X and Y = Y {v } is a bipartition of V (T ) that makes T a bipartite graph.
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:

UCSB - MATH - 137
HOMEWORK 38 PROBLEMS DUE: WEDNESDAY, FEBRUARY 16, 2011(1) Show that for each n N the complete graph Kn is a contraction of Kn,n . (2) For n N, can Kn be a contraction of Km,n if m < n? (3) The complete tripartite graph Kr,s,t consists of three disjoint
UCSB - MATH - 137
HOMEWORK 3SOLUTIONS(1) Show that for each n N the complete graph Kn is a contraction of Kn,n . Solution: We describe the process for several small values of n. In this way, we can discern the inductive step. Clearly, K1 , which is just one vertex, is a
UCSB - MATH - 137
MATH 137A MidtermFriday, February 11, 2011Solutions1. Determine whether K4 contains the following (give an example or a proof of nonexistence). (a) A walk that is not a trail. (b) A trail that is not closed and is not a path. (c) A closed trail that is
UCSB - CS - 140
CS140 Assignment 1: Research a Parallel LanguageDue January 10, 2011 ProblemEver since the first parallel computers were built in the 1980s, people have invented new programming languages (and extensions of old programming languages) for them. There's a
UCSB - CS - 140
CS 140 Assignment 2: Matrix-Vector Multiplication and the Power MethodAssigned January 10, 2011 Due by 11:59 pm Wednesday, January 19This assignment is to write a parallel program to multiply a matrix by a vector, and to use this routine in an implement
UCSB - CS - 140
CS 140 Assignment 3: Simulating the N-body ProblemAssigned January 19, 2010 Due by 11:59 pm Monday, January 31This assignment is to write an MPI program to simulate a large number of astronomical bodies (stars and planets) moving under the inuence of gr
UCSB - CS - 140
CS 140 Assignment 4:Cilkified Inner ProductsAssigned January 31, 2011Due by 11:59 pm Monday, February 7The purpose of this assignment is to gain familiarity with Cilk+ constructs and tools, as well as to think about different ways of parallelizing an
UCSB - CS - 140
CS 140 Assignment 5: Life in the Fast LaneAssigned February 7, 2010 Due by 11:59 pm Friday, February 18The object of this problem is to implement a cellular automaton called the Game of Life in Cilk+, and to tune it to get maximum performance. The progr
UCSB - CS - 140
CS 140 Midterm 1 - 8 February 2010 Name Perm#Problem 1 [20 points total] In Lake Wobegon, all the women are strong, all the men are goodlooking, and all the children are above average. Well, everyone cant be above average-but here well count how many are
UCSB - CS - 140
Complexity Measures for Parallel ComputationSeveral possible models! Several Execution time and parallelism: Work / Span Model Total cost of moving data: Communication Volume Model Detailed models that try to capture time for moving data: Latency / Band
UCSB - CS - 140
Parallel Computers Today ParallelTwo Nvidia 8800 GPUs> 1 TFLOPSOak Ridge / Cray Jaguar> 1.75 PFLOPSIntel 80core chip> 1 TFLOPS TFLOPS = 1012 floating point ops/sec PFLOPS = 1,000,000,000,000,000 / sec (1015)Supercomputers 1976: Cray-1, 133 MFLOPS
UCSB - CS - 140
CS 140 : Matrix multiplication CS Matrix multiplication I : parallel issues Matrix multiplication II: cache issuesThanks to Jim Demmel and Kathy Yelick (UCB) for some of these slidesCommunication volume model Communication Network of p processors Eac
UCSB - CS - 140
Hello, world in MPI Hello,#include <stdio.h> #include "mpi.h" int main( int argc, char *argv[]) cfw_ int rank, size; MPI_Init( &argc, &argv ); MPI_Comm_size( MPI_COMM_WORLD, &size ); MPI_Comm_rank( MPI_COMM_WORLD, &rank ); printf( "Hello world from proce
UCSB - CS - 140
CS 140 : Jan 31 Feb 7, 2011 Multicore (and Shared Memory) Programming with Cilk+ Multicore and NUMA architectures Multithreaded Programming Cilk+ as a concurrency platform Divide and conquer paradigm for Cilk+Thanks to Charles E. Leiserson for some of t
UCSB - CS - 140
www.cilk.com How to Survive the Multicore Software Revolution (or at Least Survive the Hype)CharlesE.Leiserson IlyaB.Mirman Pagei www.cilk.comContentsPreface. iv 1. TheEmergenceofMulticoreSoftware. 1 Thefreelunchisover. 1 Themulticoresoftwaretria
UCSB - CS - 140
January 21, 2011Administrivia Expectations and Confidence Homework #1 Homework #2 Moving forward Read the materials provided. If you need help come work with me!Hw1 MPI Communicationvoid powerMethod(int dims[2], double* splitA, double* x, int my_rank
UCSB - CS - 140
+Game of Life!February 11, 2011+ Administrivia Midterms Soon Hw4 Soon Watch Jeopardy!+ Today Talk about the basic concepts behind the game of life. Look at the Matlab code to get some ideas. Discuss possible parallelization strategies. What the he
UCSB - CS - 165A
Artificial IntelligenceCS 165AJan 4, 2011 Prof. Xifeng YanComputer Science Science1What is Artificial Intelligence? AI in the media Popular movies 2001: A Space Odyssey Star Trek Star Wars The Terminator The Matrix Popular press, novels Often port
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Thursday, Jan 06, 2011 Finish AI overview AI overview Some material from Ch. 26 Intelligent agents (Ch. 2)1Notes Lecture notes Username: cs165a Password: winter20112Review What is Artificial Intelligence? What
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Thursday, Jan 13, 2011 Basic Search (Ch. 3) Search (Ch 3)1Notes Lecture notes Username: cs165a Password: winter2011 Homework 1 posted; due by Jan 20 before the class. Tomorrow (Jan 14) Makeup Class,2Review Wha
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Friday, Jan 14, 2011 Basic Search (Ch. 3) Search (Ch 3)1Notes Lecture notes Username: cs165a Password: winter2011 Homework 1 due by Thursday 2 pm.2Review Problem formulation and search State-space description
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Tuesday, Jan 18, 2011 Informed Search (Ch. 3) Search (Ch1Notes Lecture notes Username: cs165a Password: winter20112Review Uninformed Search Breadth First Depth First Uniform Cost Depth Limited Limited Iterativ
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Thursday, Jan 20, 2011 Advanced Search (Ch. 4) Search (Ch 4)1Notes Lecture notes Username: cs165a Password: winter20112Review Optimality of A* Let OPT be the optimal path cost. OPT be the optimal path cost All
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Tuesday, Jan 25, 2011 Adversarial search (Ch. 5) search (Ch 5)1Announcements Homework 2 posted; due by Feb 1 before the class Machine Problem will be posted this Thursday Problem will be posted this Thursday2Mach
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Thursday, Jan 27, 2011 Knowledge and reasoning (Ch. 7) and reasoning (Ch1Notes HW#2 due next Tuesday MP specification will be out tomorrow (Jeff is working on specification will be out tomorrow (Jeff is working on
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Tuesday Feb 2, 2011 First order logic (Ch. 8) order logic (Ch 8)1Notes HW#3 is out, which will be due next Tuesday To reduce the workload, HW #3 only has two questions reduce the workload HW #3 only has two questio
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Thursday, Feb 03, 2011 First order logic (Ch. 8) order logic (Ch 8) Inference (Ch. 9)1Notes HW#3 due next Tuesday Midterm next Thursday next Thursday2Simple example of inference in FOLBob is a buffalo Pat is a p
UCSB - CS - 165A
Artificial IntelligenceCS 165A 165A Tuesday, Feb 8, 2011 Inference (Ch. 9) (Ch 9)1Notes Midterm, this Thursday One Hour Close Book2What weve been talking about Complete and sound inference procedures New inference rules: inference rules: Univers
UCSB - CS - 165A
CS 165A Articial Intelligence, Winter 2011, Assignment #3 Propositional LogicDue before class on February 8, 2011Notes Be sure to re-read the Policy on Academic Integrity on the course syllabus. Any updates or corrections will be posted on the Announce
UCSB - CS - 165A
CS 165A Artificial Intelligence, Winter 2011 Assignment #1 Artificial Intelligence Due Thursday, Jan 20 before the classNotes: Be sure to re-read the Policy on Academic Integrity on the course syllabus. Any updates or corrections will be posted on the
UCSB - CS - 165A
v. 1.0CS 165A Artificial Intelligence, Winter 2011 Assignment #2 Problem Solving and Search Due Tuesday, February 01 before the classNotes: Be sure to re-read the Policy on Academic Integrity on the course syllabus. Any updates or corrections will be
UCSB - CS - 165A
CS 165A Artificial Intelligence, Winter 2011 Assignment #4 First-order logic Due Thursday, Feb 24 before the classNotes: Be sure to re-read the Policy on Academic Integrity on the course syllabus. Any updates or corrections will be posted on the Announ
UCSB - CS - 140
CS 140 Assignment 4:Cilkified Inner ProductsAssigned January 31, 2011Due by 11:59 pm Monday, February 7The purpose of this assignment is to gain familiarity with Cilk+ constructs and tools, as well as to think about different ways of parallelizing an
UCSB - ECE - 154
Part IBackground and MotivationJan. 2011Computer Architecture, Background and MotivationSlide 1About This PresentationThis presentation is intended to support the use of the textbook Computer Architecture: From Microprocessors to Supercomputers, Oxf
UCSB - ECE - 154
Part IIInstruction-Set ArchitectureJan. 2011Computer Architecture, Instruction-Set ArchitectureSlide 1About This PresentationThis presentation is intended to support the use of the textbook Computer Architecture: From Microprocessors to Supercompute
UCSB - ECE - 154
Part IIIThe Arithmetic/Logic UnitJan. 2011Computer Architecture, The Arithmetic/Logic UnitSlide 1About This PresentationThis presentation is intended to support the use of the textbook Computer Architecture: From Microprocessors to Supercomputers, O
UCSB - ECE - 154
Part IVData Path and ControlFeb. 2009Computer Architecture, Data Path and ControlSlide 1About This PresentationThis presentation is intended to support the use of the textbook Computer Architecture: From Microprocessors to Supercomputers, Oxford Uni
UCSB - ECE - 154
Part VMemory System DesignFeb. 2009Computer Architecture, Memory System DesignSlide 1About This PresentationThis presentation is intended to support the use of the textbook Computer Architecture: From Microprocessors to Supercomputers, Oxford Univer
UCSC - BIOC - 100b
Bioc100BWinter 2011RubinProblem Set #1 Due Tuesday, January 11th 4:00 P.M.1) Size-exclusion chromatography is a technique that can be used to determine approximately the molecular weight of a protein, protein complexes, or simple protein mixtures in s
UCSC - BIOC - 100b
Bioc100BWinter 2011RubinSolution Set #31) Explain why in the symmetry model of allosterism, an inhibitor must have a positive homotropic effect on itself. Is this same behavior necessarily true of an allosteric inhibitor in the sequential model? The s
University of Colorado Denver - CHEM - 4591
CHEM4591 T 9-11:50am Feb 8th Weifeng Wang Partner: Zheng Zheng TA: Samuel ParkVibration-Rotation Spectrum of HClAbstract The vibration-Rotation spectrum of HCl was measured by the fundamental spectrum and overtone spectrum. The fundamental spectrum was
UPenn - CIS - 550
CIS 550 DatabasesVal TannenFall 2010Lecture Notes 01September 27, 2010 Slides courtesy of Susan Davidson, Zachary Ives & Raghu RamakrishnanWhy This Course?Most CS courses concentrate on code our interest is managing and representing dataWarnin
Keller Graduate School of Management - AC - 594
Lucille McElroy: REG 3 10 ? M/C QuizPage 1 of 8Grade for Lucille McElroy: REG 3 10 ? M/C QuizNumeric grade: 30 Comments: (none) <Close Window Autograde Summary These are the automatically computed results of your exam. Grades for essay questions, and c
Saddleback - PSYCHOLOGY - 310
Mohammad Abouayed 11/17/10 Stress MangAcute Stress Disorder & HypnosisThe article is about a study that is set up to prove that the use of hypnosis in addition to CBT (cognitive behavioral therapy) is very beneficial in treating Acute stress disorder an
National University of Singapore - MKT - 3402
Individual Assignment GuidelinesConstrual Theory Click to edit Master subtitle style2/23/11Billboards Vs Print Ads Vs Mobile PhonesWhat are the fundamental differences between Billboards vs Print Ads? (Or billboards vs Mobile Phone)2/23/11Construal
SUNY Stony Brook - CSE - 336
Session 1 - IntroductionCSE 336Introduction to Programming for Electronic Commerce Robert Kelly, 2001-20101General Class Issues Dr. R. Kelly (contact info on class Web site) Hands-on class Trans lab Trans Text www readings (list on a page in class
SUNY Stony Brook - CSE - 336
Session 2 BackgroundSession 2Background1Lecture Objectives Understand how an Internet resource is accessed Understand the high level structure of the Internet cloud Understand the high level structure of the TCP/IP protocols Understand how a computer
SUNY Stony Brook - CSE - 336
Session 3 HTMLSession 3HTMLTim Berners-Lee1Reading WebReference tutorialswww.webreference.com/html/tutorials/ Wikien.wikipedia.org/wiki/Html Character setshttp:/scripts.sil.org/IWS-Chapter03/ Robert Kelly, 2001-201029/10/2010 Robert Kelly,
SUNY Stony Brook - CSE - 336
Session 4 CSSSession 4Style Sheets (CSS)1Reading Reading - Style Sheet Tutorialswww.htmldog.com/guides/cssbeginner/ - beginners guide www.westciv.com/style_master/academy/css_tutorial/index.html www.webreference.com/html/tutorials/ - Tutorials www.h
SUNY Stony Brook - CSE - 336
Session 5 Servlet IntroInternet Commerce ProgrammingSession 5Introduction to Servlets1Lecture Objectives Understand the popular approaches to generating HTML on a server Know how the Hello World servlet operates Understand the interaction among the
SUNY Stony Brook - CSE - 336
Session 6 FormsSession 6Form Dataset1Lecture Objectives Understand the relationship between HTML form elements and parameters that are passed to the servlet, particularly the form dataset Robert Kelly, 2001 - 201029/20/2010 Robert Kelly, 2001 - 2
SUNY Stony Brook - CSE - 336
Session 7 HttpSession 7Deployment Descriptor Http1Reading and Reference Readingen.wikipedia.org/wiki/HTTP Reference Table of deployment descriptorsdownload-llnw.oracle.com/docs/cd/E13222_01/wls/docs81/ webapp/web_xml.html http headersen.wikiped
SUNY Stony Brook - CSE - 336
Session 8 Java BeansSession 8JavaBeans1Reading & Reference Reading Head First Chapter 3 (MVC) Reference JavaBeans Tutorialjava.sun.com/docs/books/tutorial/javabeans/ Robert Kelly, 2001-201029/27/2010 Robert Kelly, 2001-20101Session 8 Java Be
SUNY Stony Brook - CSE - 336
Session 9 Data SharingSession 9Data Sharing & Cookies1Reading & Reference Reading Chapter 5, pages 185-204 Reference http state managementwww.ietf.org/rfc/rfc2109.txt?number=2109 Robert Kelly, 2001-2010210/1/2010 Robert Kelly, 2001-20101Sess
SUNY Stony Brook - CSE - 336
Session 11 ELSession 11Expression Language (EL)1Reading Reading Head First pages 368-401 Sun Java EE 5 Chapter 5 in the Tutorialjava.sun.com/javaee/5/docs/tutorial/doc/JavaEETutorial.pdf Reference JSTL Reference (Chapter 3 and Appendix A) - link
SUNY Stony Brook - CSE - 336
Session 12 JSTLSession 12JSP Tag Library (JSTL)1Reading & Reference Reading Head First Chap 9, pages 439-474 Reference (skip internationalization and sql sections) Java EE 5 Tutorial (Chapter 7) - link on CSE336 Web site (References Section) JavaW
SUNY Stony Brook - CSE - 336
Session 14 JSP Custom TagsSession 14JSP Custom Tags1Reading & Reference Reading Head First Pages 476-490 Chapter 10 (pages 512-528, 576-577)Note that Head First covers both the JSP 2.0 approach and the classic approach this lecture covers mostly
SUNY Stony Brook - CSE - 336
Session 16 JavaScript (Part 1)Session 16JavaScript Part 11Reading Reading Wikipediaen.wikipedia.org/wiki/Javascript W3Cwww.w3.org/TR/REC-html40/interact/scripts.html Web Developers Noteswww.webdevelopersnotes.com/tutorials/javascript/ APIkroo
SUNY Stony Brook - CSE - 336
Session 17 JavaScript (Part 2)Session 17JavaScript Part 21W3C DOM Reading and Reference Background and introductionwww.w3schools.com/HTMLDOM/default.asp Reading a good tutorial on the use of W3C DOM to modify htmlwww.builderau.com.au/program/javas
SUNY Stony Brook - CSE - 336
Session 18 AjaxSession 18Ajax1Reading & Reference Reading Sun Tutorialjava.sun.com/developer/technicalArticles/J2EE/AJAX/ Reference XMLHttpRequest objecten.wikipedia.org/wiki/Xmlhttprequest www.w3.org/TR/XMLHttpRequest/ JavaScript by David Flan
SUNY Stony Brook - CSE - 336
Session 19 JSP Access to XMLSession 19JSP Access to an XML Document XPath1Reading Reading JSTL (XML Tags Section)java.sun.com/developer/technicalArticles/javaserverpages/f aster/ today.java.net/pub/a/today/2003/11/27/jstl2.html XPathThis is a goo