Assignment #3 Due: April 03, 2017

Slides:



Advertisements
Similar presentations
Fig. 4-1, p Fig. 4-2, p. 109 Fig. 4-3, p. 110.
Advertisements

Transitive Closure Compression Jan. 2013Yangjun Chen ACS Outline: Transitive Closure Compression Motivation DAG decomposition into node-disjoint.
P.464. Table 13-1, p.465 Fig. 13-1, p.466 Fig. 13-2, p.467.
Core Labeling: A New Way to Compress Transitive Closure
Jan. 2013Dr. Yangjun Chen ACS Outline Signature Files - Signature for attribute values - Signature for records - Searching a signature file Signature.
Fig. 11-1, p p. 360 Fig. 11-2, p. 361 Fig. 11-3, p. 361.
Jan Welcome to the Course of Data Structures and Algorithms.
Table 6-1, p Fig. 6-1, p. 162 p. 163 Fig. 6-2, p. 164.
Assignment #2 Sept. 2014Yangjun Chen ACS (20) The following is a DTD for books. Please produce an XML document conforming to the DTD.
Assignment #3 Sept. 2014Yangjun Chen ACS Assignment #3 Due: Nov. 27, (20) Produce a stylesheet to transform the document shown in Fig. 1(a)
Reachability Queries Sept. 2014Yangjun Chen ACS Outline: Reachability Query Evaluation What is reachability query? Reachability query evaluation.
Huffman Coding Draw the tree, label all nodes w/ index, leaves w/ letter and all links(0 or 1) What is the most frequent letter? What is the least frequent.
Recursive Graph Deduction and Reachability Queries Yangjun Chen Dept. Applied Computer Science, University of Winnipeg 515 Portage Ave. Winnipeg, Manitoba,
“ The Initiative's focus is to dramatically advance the means to collect,store,and organize information in digital forms,and make it available for searching,retrieval,and.
4.2 Graphing linear equations Objective: Graph a linear equation using a table of values.
Chapter 2 Graph Algorithms.
A Summary of XISS and Index Fabric Ho Wai Shing. Contents Definition of Terms XISS (Li and Moon, VLDB2001) Numbering Scheme Indices Stored Join Algorithms.
Solve: 1. |x – 4| = 9 2.|7x – 2| = 5 3.|3x – 2| + 4 = 21 Write the inequality shown: WU 36.
3.7 Absolute value DAY 2. Solve for x----no notes on this slide (just watch). |x| = 5 |x + 2| = 5 x = 5 or x = -5 x + 2 = 5 or x + 2 = -5 x =
SECONDARY ONE 6.1b Solving Linear Systems by Graphing.
1/16/20161 Introduction to Graphs Advanced Programming Concepts/Data Structures Ananda Gunawardena.
ACS-4902Assignment 4 due: April 03, (15) What is the shadow paging principle? Assume that a database contains 7 pages and during the execution of.
1Computer Sciences Department. 2 Advanced Design and Analysis Techniques TUTORIAL 7.
Finding Regular Simple Paths Sept. 2013Yangjun Chen ACS Finding Regular Simple Paths in Graph Databases Basic definitions Regular paths Regular simple.
A New Algorithm for Evaluating Ordered Tree Pattern Queries Yangjun Chen Dept. Applied Computer Science, University of Winnipeg 515 Portage Ave. Winnipeg,
EXAMPLE 1 Solve a system graphically Graph the linear system and estimate the solution. Then check the solution algebraically. 4x + y = 8 2x – 3y = 18.
1.[10] Suppose we have 14 integers: 10, 100, 30, 130, 80, 50, 140, 20, 60, 70, 120, 40, 90, 110. Please create a 2-3 tree by inserting one integer at a.
On the Intersection of Inverted Lists Yangjun Chen and Weixin Shen Dept. Applied Computer Science, University of Winnipeg 515 Portage Ave. Winnipeg, Manitoba,
Algebra 1 Section 4.2 Graph linear equation using tables The solution to an equation in two variables is a set of ordered pairs that makes it true. Is.
Programming Languages for XML
Science Fair Project Type your project title here Your name
Assignment #1 due Wed. Feb. 15, (15)
Decision Trees DEFINITION: DECISION TREE A decision tree is a tree in which the internal nodes represent actions, the arcs represent outcomes of an action,
Welcome to the Course of Web and Document Databases
6-1 Linear Systems Goal: Solve a system of linear equations by graphing Eligible Content: A / A
Algebra 1 Section 6.5 Graph linear inequalities in two variables.
Construct a probability distribution and calculate its summary statistics. Then/Now.
Splash Screen.
PageRank Random Surfers on the Web Transition Matrix of the Web Dead Ends and Spider Traps Topic-Specific PageRank Jeffrey D. Ullman Stanford University.
Solve Linear Systems by Graphing
Splash Screen.
6.2 Solving Quadratic Equations by Graphing
Lecture 13 review Explain how distance vector algorithm works.
Quiz Feb Inf. Search & CSP.
Outline: Transitive Closure Compression
Solving Linear Systems by Graphing
Solve a system of linear equation in two variables
CS 440 Database Management Systems
Find the next term in each sequence.
Database Systems and Internet
(a) A university is organized into faculties.
6-1 Linear Systems Goal: Solve a system of linear equations by graphing Eligible Content: A / A
Assignment #2 Due: March 08, 2017
e. Retrieve the names of all employees who work on every project.
y x y = x + 2 y = x + 4 y = x – 1 y = -x – 3 y = 2x y = ½x y = 3x + 1
Functions and Their Graphs
Today’s Objective: identify slope using tables and graphs
Compact routing schemes with improved stretch
WU 36 Solve: 1. |x – 4| = 9 |7x – 2| = 5 |3x – 2| + 4 = 21
Assignment #1 Due: Feb. 15, Apply the following algorithm to the B+-tree shown in Fig. 4 to store it in a data file. Trace the computation process.
Solutions of Linear Functions
(a) A university is organized into faculties.
Variables and Equations
Horizontal and Vertical Translations
5.1 -Systems of Linear Equations
Unit 7: Systems of Equations
Lecture 10 Graph Algorithms
Assignment #2 (Assignment due: Nov. 06, 2018) v1 v2 v3 v4 v5
Constraint Graph Binary CSPs
Equations With Two Variables pages
Presentation transcript:

Assignment #3 Due: April 03, 2017 (20) Produce a stylesheet to transform the document shown in Fig. 1(a) to a document shown in Fig. 1(b). <? Xml version = “1.0” encoding = “utf-8” standalone = “yes” ?> <Movies> <Movie title = “King Kong”> <Version year = “1993”> <Star>Fay Wray</Star> </Version> <Version year = “1976”> <Star>Jeff Brideges</Star> <Star>Jessica Lange</Star> <version year = “2005” /> </Movie> <Movie title = “Footloose”> <Version year = “1984”> <Star>Kevin Bacon</Star> <Star>John Lithgow</Star> <Star>Sarah Jessica Parkr</Star> </Movies> <? Xml version = “1.0” encoding = “utf-8” standalone = “yes” ?> <Movies> <Movie title = “King Kong”> <Star>Fay Wray</Star> <Star>Jeff Brideges</Star> <Star>Jessica Lange</Star> </Movie> <Movie title = “Footloose”> <Star>Kevin Bacon</Star> <Star>John Lithgow</Star> <Star>Sarah Jessica Parkr</Star> </Movies> (b) Fig. 1 (a) Jan. 2017 Yangjun Chen ACS-7102

2. (15) In Fig. 2, we show a network, in which each node stands for a page and each arc for a link from a page to another. Please give the transition matrix for the network. Also, explain why the solution to the equation: A = MA can be used as the estimation of page importance, where A is a vector of n variables and M is an n  n transition matrix. 5 1 4 2 3 Fig. 2 Jan. 2017 Yangjun Chen ACS-7102

3. (10) Explain why the following equation (for estimate the importance of pages) works in the presence of spider traps and dead ends. Pnew = MPold + (1 - )T 4. (20) Fig. 3 shows a tree encoding. The quadruples can be stored as a sequence sorted by LeftPos values by using the depth-first search. Design an algorithm to transform it into another sequence sorted by RightPos values. T: A v1 (1, 1, 11, 1) (1, 2, 9, 2) v2 B B v8 (1, 10, 10, 2) Fig. 3 (1, 3, 3, 3) v3 C B v4 (1, 4, 8, 3) (1, 5, 5, 4) v5 C v6 C v7 D (1, 7, 7, 4) (1, 6, 6, 4) Jan. 2017 Yangjun Chen ACS-7102

DocID Items Sorted item sequence 1 f, a, c, i, j, m, p 5. (15) In the following table, we show the key words of five documents, as well as the key word sequences sorted by frequencies. Please construct a trie for the sorted sequences and a header table for all the key words to speed up the evaluation of conjunctive queries of form word1  word2  …  wordi. Also, show how a conjunctive query is evaluated by using the trie. DocID Items Sorted item sequence 1 f, a, c, i, j, m, p c, f, i, a, m, p, j 2 a, b, c, h, f c, f, a, b, h 3 b, i, f f, b, i 4 b, c, i c, b, i 5 a, f, c, m, p c, f, a, m, p Fig. 4 Jan. 2017 Yangjun Chen ACS-7102

6. (20). The following is a directed graph G 6. (20) The following is a directed graph G. Please find a spanning tree of it and then label the nodes in the spanning tree by intervals. Also, construct an interval sequence for each node, which can be used to check the reachability queries with respect G. a b h r c d j i e p g f k Fig. 5 Jan. 2017 Yangjun Chen ACS-7102