Fortgeschrittene Datenstrukturen Vorlesung 11
|
|
- Augustine Green
- 5 years ago
- Views:
Transcription
1 Fortgeschrittee Datestruture Vorlesug 11 Schriftführer: Marti Weider Succict Data Structures (ctd.) 1.1 Select-Queries A slightly differet approach, compared to ra, is used for select. B represets the bit-vector with B = ad let = log 2. A ew table is defied, which stores the ( i) th occurece of a 1-bit i B. Alteratively, [i] = select 1 (B, i). As we ca see, table [1, ] divides B ito blocs of differet sizes, whereas each bloc cotais 1 s. A example is give i Figure 1, where a abstract bit-vector B is divided ito blocs with 1 s i each. Example 1. Let = [17, 28, 36, 53,...] ad = 8. I this case, the 8 th 1 would be at idex 17 i B, the 16 th 1 at idex 28 ad so o. B =... [1] [2] [3] [4]... The resultig blocs are grouped as follows: Figure 1: Divisio of B ito blocs with 1 s Defiitio 1. A log bloc spas more tha 2 = Θ(log 4 ) positios i B. log 4 Its umber is limited by. Therefore, the aswers for select-queries withi all log blocs ca be stored explicitly i a table: LogBloc[0, log 4 ][1, ], where LogBloc[i][j] = select 1(B, i + j). Moreover, the LogBloc table is idexed by potetial bloc umbers, because we do ot ow how may log blocs there are before a give positio. Therefore, we imagie that a log bloc begis at every 2 positio. Select-queries to log blocs ca be respoded completely based o this structure. Defiitio 2. A short bloc spas 2 positios i B. It cotais 1-bits ad it spas 2 positios i B at most. We divide their rage of argumets ito sub-rages of: = log 2 = Θ(log 2 log ). The, a table [1, ] is defied, whereas the aswers to select-queries for multiples of (relative to the ed of the previous bloc) are stored. 1
2 I table, a symbol idicates if we are i a log bloc. The formal defiitio of is: [i] = select 1 (B, i ) ([ i i ]), with as the bloc before ith 1 ad the subtrahed, represetig the ed of the bloc. Table divides the blocs ito miiblocs, each cotaiig 1-bits. A miibloc is called log if it spas more tha s = 2 = log 2 positios i B, ad short otherwise. Aalogous to the log blocs, the aswers to all select-queries are stored explicitly for all log miiblocs, relative to the begiig of the correspodig short bloc. The table LogMiiBloc[0, s ][1, ] is idexed by the potetial log miibloc umbers, because the umber of log miiblocs up to a give positio is uow. Fially, a looup table is stored for the short miiblocs because of its relative small size. Defiitio 3 (Looup table for small miiblocs). The looup table for short miiblocs is defied as follows: Ibloc[0, 2 s 1][1, ], where: Ibloc[patter][i] = select 1 (patter, i) for all bit-patters of legth s ad 1 i. Based o this table, a select-query withi a short miibloc B[b, i] ca be aswered by looig at Ibloc[B[b, b + s 1]][i]. We should eep i mid that short miibloc could be shorter tha s. I this case, a paddig with arbitrary bits i the ed to match exactly s bits does ot affect the select query aswer. The query procedure follows the descriptio of the data structure. ote that we ca determie if (mii-) blocs are log or short by ispectig adjacet elemets of (or ) ad checig if they differ by more tha 2 (or 2 ). I the followig, it is verified that the required bit space of the defied structures for the select query are succict. Table The table ca have etries as maximum i the case that B oly cotais 1 s. Moreover, oe stored idex requires log bits. We get: = log = O( log ) = log 2 O( log ) = o() Table LogBloc LogBloc cosists of etries, because of oe etry for each potetial log 2 bloc. Moreover, it has colums i order to store the positios of the 1 s, which are iside the bloc. A table cell requires log bits. To sum up, the bit space results i: LogBloc = log = O( 2 log ) = o() Table The aalysis is similar to by just usig the defiitio for : = log 2 = 4 log log log 2 log = O( log log ) = o() LogMiiBloc The table cosists of s potetial miibloc etries ad for each, with idices for 1 s, relative to the edig of the previous bloc. Thus, we get: LogMiiBloc = s log 2 = log 2 log 2 = O( log3 log log ) = o() Ibloc Ibloc as a looup table cotais 2 s differet patters, icludig idices for the positio of the i th 1 (0 < i < ): Ibloc = 2 s log s = O( log 3 log ) = o() As ca be see from the aalysis, all defied structures require a bit space i o() ad thus, they are succict. 2
3 Example 2. A example for the select structures is give i Figure 2. I the upper part, the bit vector B is show, icludig the borders for the differet bloc types ad idices. The three reddashed separators idicate the potetial borders of log blocs. Moreover, there is preseted a log miibloc i darer blue ad three short miiblocs followig. Below, oe ca see the parameters, etc. ad the tables LogBloc, LogMiiBloc ad Ibloc, which are associated by meas of correspodig colors with the blocs i the bit-vector.!!!!!!!!!!!!!!! 0!!!!!!!!!!!!!!!! 1!!!!!!!!!!!!!!!! 2!!!!! 3!!!!!!!!!!! 1!!!!!!!!!! 2!!!!!!!!!! 3!!!!!!!!!! 4!!!!!!!!!! 5!!! 0! 1! 2! 3! 4! 5! 6! 7! 8! 9! 0! 1! 2! 3! 4! 5! 6! 7! 8! 9! 0! 1! 2! 3! 4! 5! 6! 7! 8! 9! 0! 1! 2! 3! 4! 5! 6! 7! 8! 9! 0! 1! 2! 3! 4! 5! 6! 7! 8! 9! 0! 1! 2! 0! 0! 1! 1! 0! 0! 1! 0! 1! 1! 0! 1! 0! 0! 0! 0! 1! 1! 1! 0! 1! 1! 0! 0! 1! 1! 1! 1! 1! 1! 1! 1! 1! 1! 1! 1! 1! 0! 1! 1! 1! 1! 0! 0! 1! 0! 0! 0! 1! 0! 1! 0! 0! 0!!!!!! 1!!!!!! 2!!!!!! 3!!!!!! 4!!!!!! 5!!!!!! 6!!!!!! 7!!!!!! 8!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! log bloc short bloc short bloc "="8," 2 "="16"! "="4," "="6"! ""="17,"28,"36,"53" "=", 7,11 4,8, " (Ibloc) patter' 1' 2' 3' 4' " " " " " " " " " " " 2" 3" 4" 5" " 1" " " " " " " " " " 1" 3" 4" 5" " " " " " " 0" 1" 2" 3" " 0" 1" 2" 3" " " " " " " (LogMiiBloc)! 1! 2! 3! 4! 0" #" 1" #" 2" #" 3" 0" 2" 3" 6" 4" #" 5" #" 6" #" 7" #" 8" #" " (LogBloc) Potetial)bloc)umber) 1" 2" 3" 4" 5" 6" 7" 8" 0) 2" 3" 6" 8" 9" 11" 16" 17" 1) +" 2) 38" 39" 40" 41" 44" 48" 50" 53" 3) +" " Figure 2: Example of select 1.2 Fidclose Agai, let B be a balaced strig of 2 paretheses. Problem 1. We have to defie a succict data structure that requires o() bits of additioal space to aswer fidclose queries i O(1) time for ay balaced strig of legth Example 3. The followig table presets a balaced paretheses strig. A example query for fidclose would be: fidclose(1) = B = ( ( ( ) ( ) ) ( ) ( ( ( ) ( ) ( ) ) ( ) ) ) If = O( ), we ca precompute the aswers for all 2 paretheses, usig O( log 2 log ) = o() bits i total. Otherwise, we costruct the structures as follows: we divide B ito equal-sized blocs of legth s, where: s = log 2. Defiitio 4. Let b(p) = p s deote the bloc i which parethesis p lies. Moreover, we let µ(p) { fidclose(p) B[p] = ( deote the matchig parethesis of p: µ(p) = fidope(p) else 1 A ew variable is itroduced, because the fidclose operatio is applied o the bit-vectors B ad B as well (defied later) ad their legth is. 3
4 Defiitio 5. Let s call p far, if b(µ(p)) b(p) (the matchig parethesis for p is located i aother bloc) or ear, if b(µ(p)) = b(p). ear Paretheses: A looup table earfidclose[0, 2 s 1][0, s 1] is precomputed such that: { fidclose(patter, i) if patter[i] is ear earfidclose[patter][i] = if patter[i] is far patters, i : 1 i s such that patter[i] = (. Far Paretheses: Defiitio 6. Cosider p as a opeig far parethesis ad let q be the immediate predecessor of p which is also a opeig far parethesis. A opeig parethesis p is called a opeig pioeer if: b(µ(p)) b(µ(q)). A closig pioeer is defied symmetrically. A pioeer is either opeig or closig. ote that the match of a pioeer is ot ecessarily a pioeer itself. The root is always a pioeer. Example 4. Figure 3 shows a example of a pioeer p with s = 5. s z} { q p µ(p) s z} { µ(q) ) ( ( ) ( ( ) ) ( ) ( ) ) ( ( pioeer Figure 3: Example of a pioeer The umber of pioeers is size of: #pioeer = B = O( log ), because there ca be at most oe pair (p, µ(p)) per pair of blocs such that p is i the oe bloc ad µ(p) i the other oe, ad p or µ(p) is a pioeer: Imagie a graph, where odes are represeted by blocs ad edges represet a pioeer ad its match. We ca see that the resultig graph is plaar, because matchig paretheses caot cross. Hece, its size is liear i the umber of blocs, which is O( log ). We costruct a data structure B, which represets a substrig of B, but oly cosistig of pioeers ad their matches. To tell whether a parethesis p is stored i B, the pioeers ad their matches are mared i a bitmap piofam[0, 2 1] ad prepared for O(1) ra- ad select-queries. To eep the space withi o(), we eed the followig theorem, which will be proved i a further sectio. Theorem 1. Sparse Bitmap Theorem A bitmap B of legth cotaiig u 1 s ca be represeted i O(u log u ) + o() bits of space, such that subsequet ra- ad select-queries o B ca be aswered i O(1) time. The same structure is stored recursively for B such that B = O( bitmap piofam. I this stage, all aswers ca be precomputed. Additioally, we eed two more looup tables for the fial algorithm. 4 log 2 ) with its correspodig
5 Defiitio 7. Excess[0, 2 s 1][0, s 1][0, s 1] represets a looup table to fid differeces i excess level, defied as follows. Excess[patter][i][j] = excess(patter, j) excess(patter, i) Defiitio 8. Leftmost [patter][ ][i] = mi {j i : excess(j) excess(i) = } with 0 i < s By ow, all relevat data structures for the fidclose operatio are defied. A bit space aalysis will verify that the structures are succict. Vector B We have already show that there exist #pioeers = B = O( stored i o() bits. log ), which ca be Bitmap piofam Based o the sparse bitmap theorem ad for u = O( log ), piofam requires a bit space of: piofam = O( log log log ) + o() = o(). Vector B B, which cotais all pioeer families of B, requires a bit space of: B = O( log 2 ) = o(). Bitmap piofam For the correspodig pioeer bitmap for B, we set u = O( i: piofam = O( log 2 log(log log2 )) + o() = O( log 2 log 2 ), which results log log ) + o() = o(). Table earfidclose The looup table cotais a etry for each of the 2 s patters, oe etry stores O(s) idices for ear paretheses ad each idex requires log s bits. Therefore, a bit space of O(2 s s log s) = o() is required. Excess ad Leftmost Similar to earfidclose, both tables have etries for 2 s patters, O(s 2 ) rows ad a cell with log s bits. If the three tables are combied, they require: O(2 s s 2 log s) = o(). Because both tables ad earfidclose use the same patters, it is eve possible to precompute a combied looup table. As has bee show for all data structures, each requires a bit space i o() ad thus, they are still succict. I the followig, we cotiue with the defiitio of the algorithm for the operatio fidclose(p). Defiitio 9. Operatio fidclose(p) 1. Based o the looup table, determie whether p is far: (a) p is ear The table earfidclose gives the aswer. (b) p is far, the calculate the umber of members i the pioeer family B up to p by q ra 1 (piofam, p) ad the positio of this parethesis i B by p select 1 (piofam, q), which is a opeig parethesis ad the immediate previous pioeer. Usig the recursive structure for B, we fid that j fidclose(b, q 1) 2 is the match of q i B, which ca be mapped bac to a positio i B by µ(p ) = select 1 (piofam, j + 1). 2. Sice the first far parethesis i each bloc is stored i B, b(p) = b(p ). Via a table looup, the excess level differece betwee p ad p is determied. Let b = p s ad set Excess[B[bs, (b + 1)s 1]][p bs][p bs]. 2 q 1 because ra starts at 1. 5
6 3. The chage betwee µ(p) ad µ(p ) must be ad µ(p) is the leftmost positio i µ(p ) s bloc with this property (same excess differece). Thus, we ca use the Leftmost looup table, where b = µ(p ) s is µ(p ) s bloc (hece, also µ(p) s bloc) by µ(p) = b s + Leftmost [B[b s, (b + 1)s 1]][ ][µ(p ) b s] Example 5. Fially, a example of fidclose is preseted. The required data structures are visible i Figure 4. Separators are idicatig bloc borders for s = 5. Our example query is: fidclose(4). As we ca see from a looup i earfidclose, the for our p idicates a far parethesis pair. ext, the algorithm computes the ra 1 i piofam up to p, which results i q = 2. Based o q, the immediate previous pioeer p is calculated. Moreover, the closig parethesis for p is at j = 2 ad µ(p ) = 6 ca be determied. The excess differece betwee p ad p is: = 1 ( Excess, last patter, i = 1 for idex 4 i patter). At the ed, the Leftmost table is accessed for = 1. I the patter, µ(p ) is at idex 1 ad the table returs a 0. We ca fially calculate µ(p) = = 5. excess { B = ( ( ( ) ( ) ) ( ) ( ( ( ) ( ) ( ) ) ( ) ) ) p µ(p ) piofam = B 0 = ( ( ) ( ( ) ) ) piofam 0 = j p B 00 = ( ) Figure 4: Example data structures of fidclose!! earfidclose! ΔExcess! LeftmostΔ!!!!!!!! i!=!0! i!=!1! i!=!2!! Δ!=!1! Δ!=!2!!! patter! 0! 1! 2! 3! 4! 1! 2! 3! 4! 2! 3! 4! 3! 4! 4! 1! 2! 3! 4! 1! 2! 3! 4! etc.!! )!)!)!)!)!!!!!! 21! 22! 23! 24! 21! 22! 23! 21! 22! 21! 0! 1! 2! 3!! 0! 1! 2!!! )!)!)!)!(!!!!!!!!!!!!!!!!!!!!!!!!! bloc!1!! )!)!(!)!(!!! 3!!!!!!!!!!!!! 0! 0!!!!!!!!! )!(!)!(!(!! 2!!!! 1! 0! 1! 2! 21! 0! 1! 1! 2! 1!!!!!!!!!! bloc!0!! (!(!(!)!(!!! 3!!! 1! 2! 1! 2! 1! 0! 1! 21! 0! 1!!! 2!!!!!!!! Figure 5: Example looup table of fidclose 6
7 Refereces R.F. Geary,. Rahma, R. Rama, ad V. Rama. A simple optimal represetatio for balaced paretheses. I Combiatorial Patter Matchig, pages Spriger, J.I. Muro ad V. Rama. Succict represetatio of balaced paretheses ad static trees. SIAM Joural o Computig, 31(3): ,
Discrete-Time Systems, LTI Systems, and Discrete-Time Convolution
EEL5: Discrete-Time Sigals ad Systems. Itroductio I this set of otes, we begi our mathematical treatmet of discrete-time s. As show i Figure, a discrete-time operates or trasforms some iput sequece x [
More informationNICK DUFRESNE. 1 1 p(x). To determine some formulas for the generating function of the Schröder numbers, r(x) = a(x) =
AN INTRODUCTION TO SCHRÖDER AND UNKNOWN NUMBERS NICK DUFRESNE Abstract. I this article we will itroduce two types of lattice paths, Schröder paths ad Ukow paths. We will examie differet properties of each,
More informationInjections, Surjections, and the Pigeonhole Principle
Ijectios, Surjectios, ad the Pigeohole Priciple 1 (10 poits Here we will come up with a sloppy boud o the umber of parethesisestigs (a (5 poits Describe a ijectio from the set of possible ways to est pairs
More informationInfinite Sequences and Series
Chapter 6 Ifiite Sequeces ad Series 6.1 Ifiite Sequeces 6.1.1 Elemetary Cocepts Simply speakig, a sequece is a ordered list of umbers writte: {a 1, a 2, a 3,...a, a +1,...} where the elemets a i represet
More informationCounting Well-Formed Parenthesizations Easily
Coutig Well-Formed Parethesizatios Easily Pekka Kilpeläie Uiversity of Easter Filad School of Computig, Kuopio August 20, 2014 Abstract It is well kow that there is a oe-to-oe correspodece betwee ordered
More informationComplex Numbers Solutions
Complex Numbers Solutios Joseph Zoller February 7, 06 Solutios. (009 AIME I Problem ) There is a complex umber with imagiary part 64 ad a positive iteger such that Fid. [Solutio: 697] 4i + + 4i. 4i 4i
More informationSECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES
SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES Read Sectio 1.5 (pages 5 9) Overview I Sectio 1.5 we lear to work with summatio otatio ad formulas. We will also itroduce a brief overview of sequeces,
More informationThe Random Walk For Dummies
The Radom Walk For Dummies Richard A Mote Abstract We look at the priciples goverig the oe-dimesioal discrete radom walk First we review five basic cocepts of probability theory The we cosider the Beroulli
More informationCSE 202 Homework 1 Matthias Springer, A Yes, there does always exist a perfect matching without a strong instability.
CSE 0 Homework 1 Matthias Spriger, A9950078 1 Problem 1 Notatio a b meas that a is matched to b. a < b c meas that b likes c more tha a. Equality idicates a tie. Strog istability Yes, there does always
More information6.867 Machine learning, lecture 7 (Jaakkola) 1
6.867 Machie learig, lecture 7 (Jaakkola) 1 Lecture topics: Kerel form of liear regressio Kerels, examples, costructio, properties Liear regressio ad kerels Cosider a slightly simpler model where we omit
More informationCHAPTER I: Vector Spaces
CHAPTER I: Vector Spaces Sectio 1: Itroductio ad Examples This first chapter is largely a review of topics you probably saw i your liear algebra course. So why cover it? (1) Not everyoe remembers everythig
More informationChapter Vectors
Chapter 4. Vectors fter readig this chapter you should be able to:. defie a vector. add ad subtract vectors. fid liear combiatios of vectors ad their relatioship to a set of equatios 4. explai what it
More information6.003 Homework #3 Solutions
6.00 Homework # Solutios Problems. Complex umbers a. Evaluate the real ad imagiary parts of j j. π/ Real part = Imagiary part = 0 e Euler s formula says that j = e jπ/, so jπ/ j π/ j j = e = e. Thus the
More information4 The Sperner property.
4 The Sperer property. I this sectio we cosider a surprisig applicatio of certai adjacecy matrices to some problems i extremal set theory. A importat role will also be played by fiite groups. I geeral,
More informationOptimally Sparse SVMs
A. Proof of Lemma 3. We here prove a lower boud o the umber of support vectors to achieve geeralizatio bouds of the form which we cosider. Importatly, this result holds ot oly for liear classifiers, but
More informationAlternating Series. 1 n 0 2 n n THEOREM 9.14 Alternating Series Test Let a n > 0. The alternating series. 1 n a n.
0_0905.qxd //0 :7 PM Page SECTION 9.5 Alteratig Series Sectio 9.5 Alteratig Series Use the Alteratig Series Test to determie whether a ifiite series coverges. Use the Alteratig Series Remaider to approximate
More informationThe picture in figure 1.1 helps us to see that the area represents the distance traveled. Figure 1: Area represents distance travelled
1 Lecture : Area Area ad distace traveled Approximatig area by rectagles Summatio The area uder a parabola 1.1 Area ad distace Suppose we have the followig iformatio about the velocity of a particle, how
More informationTHE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS
THE ASYMPTOTIC COMPLEXITY OF MATRIX REDUCTION OVER FINITE FIELDS DEMETRES CHRISTOFIDES Abstract. Cosider a ivertible matrix over some field. The Gauss-Jorda elimiatio reduces this matrix to the idetity
More information4.3 Growth Rates of Solutions to Recurrences
4.3. GROWTH RATES OF SOLUTIONS TO RECURRENCES 81 4.3 Growth Rates of Solutios to Recurreces 4.3.1 Divide ad Coquer Algorithms Oe of the most basic ad powerful algorithmic techiques is divide ad coquer.
More informationRecurrence Relations
Recurrece Relatios Aalysis of recursive algorithms, such as: it factorial (it ) { if (==0) retur ; else retur ( * factorial(-)); } Let t be the umber of multiplicatios eeded to calculate factorial(). The
More informationLesson 10: Limits and Continuity
www.scimsacademy.com Lesso 10: Limits ad Cotiuity SCIMS Academy 1 Limit of a fuctio The cocept of limit of a fuctio is cetral to all other cocepts i calculus (like cotiuity, derivative, defiite itegrals
More information# fixed points of g. Tree to string. Repeatedly select the leaf with the smallest label, write down the label of its neighbour and remove the leaf.
Combiatorics Graph Theory Coutig labelled ad ulabelled graphs There are 2 ( 2) labelled graphs of order. The ulabelled graphs of order correspod to orbits of the actio of S o the set of labelled graphs.
More informationMath 113 Exam 3 Practice
Math Exam Practice Exam will cover.-.9. This sheet has three sectios. The first sectio will remid you about techiques ad formulas that you should kow. The secod gives a umber of practice questios for you
More informationRandomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018)
Radomized Algorithms I, Sprig 08, Departmet of Computer Sciece, Uiversity of Helsiki Homework : Solutios Discussed Jauary 5, 08). Exercise.: Cosider the followig balls-ad-bi game. We start with oe black
More informationSection 1.1. Calculus: Areas And Tangents. Difference Equations to Differential Equations
Differece Equatios to Differetial Equatios Sectio. Calculus: Areas Ad Tagets The study of calculus begis with questios about chage. What happes to the velocity of a swigig pedulum as its positio chages?
More information18th Bay Area Mathematical Olympiad. Problems and Solutions. February 23, 2016
18th Bay Area Mathematical Olympiad February 3, 016 Problems ad Solutios BAMO-8 ad BAMO-1 are each 5-questio essay-proof exams, for middle- ad high-school studets, respectively. The problems i each exam
More informationLinear chord diagrams with long chords
Liear chord diagrams with log chords Everett Sulliva Departmet of Mathematics Dartmouth College Haover New Hampshire, U.S.A. everett..sulliva@dartmouth.edu Submitted: Feb 7, 2017; Accepted: Oct 7, 2017;
More informationProblem Set 2 Solutions
CS271 Radomess & Computatio, Sprig 2018 Problem Set 2 Solutios Poit totals are i the margi; the maximum total umber of poits was 52. 1. Probabilistic method for domiatig sets 6pts Pick a radom subset S
More informationUSA Mathematical Talent Search Round 3 Solutions Year 27 Academic Year
/3/27. Fill i each space of the grid with either a or a so that all sixtee strigs of four cosecutive umbers across ad dow are distict. You do ot eed to prove that your aswer is the oly oe possible; you
More informationCALCULATION OF FIBONACCI VECTORS
CALCULATION OF FIBONACCI VECTORS Stuart D. Aderso Departmet of Physics, Ithaca College 953 Daby Road, Ithaca NY 14850, USA email: saderso@ithaca.edu ad Dai Novak Departmet of Mathematics, Ithaca College
More information7. Modern Techniques. Data Encryption Standard (DES)
7. Moder Techiques. Data Ecryptio Stadard (DES) The objective of this chapter is to illustrate the priciples of moder covetioal ecryptio. For this purpose, we focus o the most widely used covetioal ecryptio
More informationMA131 - Analysis 1. Workbook 3 Sequences II
MA3 - Aalysis Workbook 3 Sequeces II Autum 2004 Cotets 2.8 Coverget Sequeces........................ 2.9 Algebra of Limits......................... 2 2.0 Further Useful Results........................
More informationSection 5.1 The Basics of Counting
1 Sectio 5.1 The Basics of Coutig Combiatorics, the study of arragemets of objects, is a importat part of discrete mathematics. I this chapter, we will lear basic techiques of coutig which has a lot of
More informationCommutativity in Permutation Groups
Commutativity i Permutatio Groups Richard Wito, PhD Abstract I the group Sym(S) of permutatios o a oempty set S, fixed poits ad trasiet poits are defied Prelimiary results o fixed ad trasiet poits are
More informationTHIS paper analyzes the behavior of those complex
IAENG Iteratioal Joural of Computer Sciece 39:4 IJCS_39_4_6 Itrisic Order Lexicographic Order Vector Order ad Hammig Weight Luis Gozález Abstract To compare biary -tuple probabilities with o eed to compute
More information4.1 Sigma Notation and Riemann Sums
0 the itegral. Sigma Notatio ad Riema Sums Oe strategy for calculatig the area of a regio is to cut the regio ito simple shapes, calculate the area of each simple shape, ad the add these smaller areas
More informationMath 113 Exam 3 Practice
Math Exam Practice Exam 4 will cover.-., 0. ad 0.. Note that eve though. was tested i exam, questios from that sectios may also be o this exam. For practice problems o., refer to the last review. This
More informationChapter 6 Infinite Series
Chapter 6 Ifiite Series I the previous chapter we cosidered itegrals which were improper i the sese that the iterval of itegratio was ubouded. I this chapter we are goig to discuss a topic which is somewhat
More informationMath 4707 Spring 2018 (Darij Grinberg): homework set 4 page 1
Math 4707 Sprig 2018 Darij Griberg): homewor set 4 page 1 Math 4707 Sprig 2018 Darij Griberg): homewor set 4 due date: Wedesday 11 April 2018 at the begiig of class, or before that by email or moodle Please
More informationDisjoint Systems. Abstract
Disjoit Systems Noga Alo ad Bey Sudaov Departmet of Mathematics Raymod ad Beverly Sacler Faculty of Exact Scieces Tel Aviv Uiversity, Tel Aviv, Israel Abstract A disjoit system of type (,,, ) is a collectio
More informationContext-free grammars and. Basics of string generation methods
Cotext-free grammars ad laguages Basics of strig geeratio methods What s so great about regular expressios? A regular expressio is a strig represetatio of a regular laguage This allows the storig a whole
More informationSquare-Congruence Modulo n
Square-Cogruece Modulo Abstract This paper is a ivestigatio of a equivalece relatio o the itegers that was itroduced as a exercise i our Discrete Math class. Part I - Itro Defiitio Two itegers are Square-Cogruet
More informationLecture 11: Pseudorandom functions
COM S 6830 Cryptography Oct 1, 2009 Istructor: Rafael Pass 1 Recap Lecture 11: Pseudoradom fuctios Scribe: Stefao Ermo Defiitio 1 (Ge, Ec, Dec) is a sigle message secure ecryptio scheme if for all uppt
More information6.3 Testing Series With Positive Terms
6.3. TESTING SERIES WITH POSITIVE TERMS 307 6.3 Testig Series With Positive Terms 6.3. Review of what is kow up to ow I theory, testig a series a i for covergece amouts to fidig the i= sequece of partial
More informationLinear Regression Demystified
Liear Regressio Demystified Liear regressio is a importat subject i statistics. I elemetary statistics courses, formulae related to liear regressio are ofte stated without derivatio. This ote iteds to
More informationLinearly Independent Sets, Bases. Review. Remarks. A set of vectors,,, in a vector space is said to be linearly independent if the vector equation
Liearly Idepedet Sets Bases p p c c p Review { v v vp} A set of vectors i a vector space is said to be liearly idepedet if the vector equatio cv + c v + + c has oly the trivial solutio = = { v v vp} The
More informationMA131 - Analysis 1. Workbook 10 Series IV
MA131 - Aalysis 1 Workbook 10 Series IV Autum 2004 Cotets 4.19 Rearragemets of Series...................... 1 4.19 Rearragemets of Series If you take ay fiite set of umbers ad rearrage their order, their
More informationOPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES
OPTIMAL ALGORITHMS -- SUPPLEMENTAL NOTES Peter M. Maurer Why Hashig is θ(). As i biary search, hashig assumes that keys are stored i a array which is idexed by a iteger. However, hashig attempts to bypass
More informationA sequence of numbers is a function whose domain is the positive integers. We can see that the sequence
Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece,, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet as
More informationChapter 7 COMBINATIONS AND PERMUTATIONS. where we have the specific formula for the binomial coefficients:
Chapter 7 COMBINATIONS AND PERMUTATIONS We have see i the previous chapter that (a + b) ca be writte as 0 a % a & b%þ% a & b %þ% b where we have the specific formula for the biomial coefficiets: '!!(&)!
More informationLONG SNAKES IN POWERS OF THE COMPLETE GRAPH WITH AN ODD NUMBER OF VERTICES
J Lodo Math Soc (2 50, (1994, 465 476 LONG SNAKES IN POWERS OF THE COMPLETE GRAPH WITH AN ODD NUMBER OF VERTICES Jerzy Wojciechowski Abstract I [5] Abbott ad Katchalski ask if there exists a costat c >
More informationSNAP Centre Workshop. Basic Algebraic Manipulation
SNAP Cetre Workshop Basic Algebraic Maipulatio 8 Simplifyig Algebraic Expressios Whe a expressio is writte i the most compact maer possible, it is cosidered to be simplified. Not Simplified: x(x + 4x)
More informationCS / MCS 401 Homework 3 grader solutions
CS / MCS 401 Homework 3 grader solutios assigmet due July 6, 016 writte by Jāis Lazovskis maximum poits: 33 Some questios from CLRS. Questios marked with a asterisk were ot graded. 1 Use the defiitio of
More informationUnit 6: Sequences and Series
AMHS Hoors Algebra 2 - Uit 6 Uit 6: Sequeces ad Series 26 Sequeces Defiitio: A sequece is a ordered list of umbers ad is formally defied as a fuctio whose domai is the set of positive itegers. It is commo
More informationPhysics 324, Fall Dirac Notation. These notes were produced by David Kaplan for Phys. 324 in Autumn 2001.
Physics 324, Fall 2002 Dirac Notatio These otes were produced by David Kapla for Phys. 324 i Autum 2001. 1 Vectors 1.1 Ier product Recall from liear algebra: we ca represet a vector V as a colum vector;
More informationKNOWLEDGE OF NUMBER SENSE, CONCEPTS, AND OPERATIONS
DOMAIN I. COMPETENCY.0 MATHEMATICS KNOWLEDGE OF NUMBER SENSE, CONCEPTS, AND OPERATIONS Skill. Apply ratio ad proportio to solve real-world problems. A ratio is a compariso of umbers. If a class had boys
More informationA Block Cipher Using Linear Congruences
Joural of Computer Sciece 3 (7): 556-560, 2007 ISSN 1549-3636 2007 Sciece Publicatios A Block Cipher Usig Liear Cogrueces 1 V.U.K. Sastry ad 2 V. Jaaki 1 Academic Affairs, Sreeidhi Istitute of Sciece &
More information1. ARITHMETIC OPERATIONS IN OBSERVER'S MATHEMATICS
1. ARITHMETIC OPERATIONS IN OBSERVER'S MATHEMATICS We cosider a ite well-ordered system of observers, where each observer sees the real umbers as the set of all iite decimal fractios. The observers are
More informationsubcaptionfont+=small,labelformat=parens,labelsep=space,skip=6pt,list=0,hypcap=0 subcaption ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, 2/16/2016
subcaptiofot+=small,labelformat=pares,labelsep=space,skip=6pt,list=0,hypcap=0 subcaptio ALGEBRAIC COMBINATORICS LECTURE 8 TUESDAY, /6/06. Self-cojugate Partitios Recall that, give a partitio λ, we may
More informationSolutions to Final Exam
Solutios to Fial Exam 1. Three married couples are seated together at the couter at Moty s Blue Plate Dier, occupyig six cosecutive seats. How may arragemets are there with o wife sittig ext to her ow
More informationInverse Matrix. A meaning that matrix B is an inverse of matrix A.
Iverse Matrix Two square matrices A ad B of dimesios are called iverses to oe aother if the followig holds, AB BA I (11) The otio is dual but we ofte write 1 B A meaig that matrix B is a iverse of matrix
More informationMa 530 Introduction to Power Series
Ma 530 Itroductio to Power Series Please ote that there is material o power series at Visual Calculus. Some of this material was used as part of the presetatio of the topics that follow. What is a Power
More information(3) If you replace row i of A by its sum with a multiple of another row, then the determinant is unchanged! Expand across the i th row:
Math 50-004 Tue Feb 4 Cotiue with sectio 36 Determiats The effective way to compute determiats for larger-sized matrices without lots of zeroes is to ot use the defiitio, but rather to use the followig
More informationFLC Ch 8 & 9. Evaluate. Check work. a) b) c) d) e) f) g) h) i) j) k) l) m) n) o) 3. p) q) r) s) t) 3.
Math 100 Elemetary Algebra Sec 8.1: Radical Expressios List perfect squares ad evaluate their square root. Kow these perfect squares for test. Def The positive (pricipal) square root of x, writte x, is
More informationAlliance Partition Number in Graphs
Alliace Partitio Number i Graphs Lida Eroh Departmet of Mathematics Uiversity of Wiscosi Oshkosh, Oshkosh, WI email: eroh@uwoshedu, phoe: (90)44-7343 ad Ralucca Gera Departmet of Applied Mathematics Naval
More informationSome Explicit Formulae of NAF and its Left-to-Right. Analogue Based on Booth Encoding
Vol.7, No.6 (01, pp.69-74 http://dx.doi.org/10.1457/ijsia.01.7.6.7 Some Explicit Formulae of NAF ad its Left-to-Right Aalogue Based o Booth Ecodig Dog-Guk Ha, Okyeo Yi, ad Tsuyoshi Takagi Kookmi Uiversity,
More information1 of 7 7/16/2009 6:06 AM Virtual Laboratories > 6. Radom Samples > 1 2 3 4 5 6 7 6. Order Statistics Defiitios Suppose agai that we have a basic radom experimet, ad that X is a real-valued radom variable
More informationCOM BIN A TOR I A L TOURNAMENTS THAT ADMIT EXACTLY ONE HAMILTONIAN CIRCUIT
a 7 8 9 l 3 5 2 4 6 6 7 8 9 2 4 3 5 a 5 a 2 7 8 9 3 4 6 1 4 6 1 3 7 8 9 5 a 2 a 6 5 4 9 8 7 1 2 3 8 6 1 3 1 7 1 0 6 5 9 8 2 3 4 6 1 3 5 7 0 9 3 4 0 7 8 9 9 8 7 3 2 0 4 5 6 1 9 7 8 1 9 8 7 4 3 2 5 6 0 YEA
More informationMassachusetts Institute of Technology
6.0/6.3: Probabilistic Systems Aalysis (Fall 00) Problem Set 8: Solutios. (a) We cosider a Markov chai with states 0,,, 3,, 5, where state i idicates that there are i shoes available at the frot door i
More information10.6 ALTERNATING SERIES
0.6 Alteratig Series Cotemporary Calculus 0.6 ALTERNATING SERIES I the last two sectios we cosidered tests for the covergece of series whose terms were all positive. I this sectio we examie series whose
More informationProblem Cosider the curve give parametrically as x = si t ad y = + cos t for» t» ß: (a) Describe the path this traverses: Where does it start (whe t =
Mathematics Summer Wilso Fial Exam August 8, ANSWERS Problem 1 (a) Fid the solutio to y +x y = e x x that satisfies y() = 5 : This is already i the form we used for a first order liear differetial equatio,
More informationOnline hypergraph matching: hiring teams of secretaries
Olie hypergraph matchig: hirig teams of secretaries Rafael M. Frogillo Advisor: Robert Kleiberg May 29, 2008 Itroductio The goal of this paper is to fid a competitive algorithm for the followig problem.
More informationThe Local Harmonious Chromatic Problem
The 7th Workshop o Combiatorial Mathematics ad Computatio Theory The Local Harmoious Chromatic Problem Yue Li Wag 1,, Tsog Wuu Li ad Li Yua Wag 1 Departmet of Iformatio Maagemet, Natioal Taiwa Uiversity
More informationA representation approach to the tower of Hanoi problem
Uiversity of Wollogog Research Olie Departmet of Computig Sciece Workig Paper Series Faculty of Egieerig ad Iformatio Scieces 98 A represetatio approach to the tower of Haoi problem M. C. Er Uiversity
More informationAverage-Case Analysis of QuickSort
Average-Case Aalysis of QuickSort Comp 363 Fall Semester 003 October 3, 003 The purpose of this documet is to itroduce the idea of usig recurrece relatios to do average-case aalysis. The average-case ruig
More informationChimica Inorganica 3
himica Iorgaica Irreducible Represetatios ad haracter Tables Rather tha usig geometrical operatios, it is ofte much more coveiet to employ a ew set of group elemets which are matrices ad to make the rule
More informationA Probabilistic Analysis of Quicksort
A Probabilistic Aalysis of Quicsort You are assumed to be familiar with Quicsort. I each iteratio this sortig algorithm chooses a pivot ad the, by performig comparisios with the pivot, splits the remaider
More informationw (1) ˆx w (1) x (1) /ρ and w (2) ˆx w (2) x (2) /ρ.
2 5. Weighted umber of late jobs 5.1. Release dates ad due dates: maximimizig the weight of o-time jobs Oce we add release dates, miimizig the umber of late jobs becomes a sigificatly harder problem. For
More informationLecture Overview. 2 Permutations and Combinations. n(n 1) (n (k 1)) = n(n 1) (n k + 1) =
COMPSCI 230: Discrete Mathematics for Computer Sciece April 8, 2019 Lecturer: Debmalya Paigrahi Lecture 22 Scribe: Kevi Su 1 Overview I this lecture, we begi studyig the fudametals of coutig discrete objects.
More informationChapter 9 - CD companion 1. A Generic Implementation; The Common-Merge Amplifier. 1 τ is. ω ch. τ io
Chapter 9 - CD compaio CHAPTER NINE CD-9.2 CD-9.2. Stages With Voltage ad Curret Gai A Geeric Implemetatio; The Commo-Merge Amplifier The advaced method preseted i the text for approximatig cutoff frequecies
More informationLet us consider the following problem to warm up towards a more general statement.
Lecture 4: Sequeces with repetitios, distributig idetical objects amog distict parties, the biomial theorem, ad some properties of biomial coefficiets Refereces: Relevat parts of chapter 15 of the Math
More informationHomework 3. = k 1. Let S be a set of n elements, and let a, b, c be distinct elements of S. The number of k-subsets of S is
Homewor 3 Chapter 5 pp53: 3 40 45 Chapter 6 p85: 4 6 4 30 Use combiatorial reasoig to prove the idetity 3 3 Proof Let S be a set of elemets ad let a b c be distict elemets of S The umber of -subsets of
More informationECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations
ECE-S352 Itroductio to Digital Sigal Processig Lecture 3A Direct Solutio of Differece Equatios Discrete Time Systems Described by Differece Equatios Uit impulse (sample) respose h() of a DT system allows
More informationIntermediate Math Circles November 4, 2009 Counting II
Uiversity of Waterloo Faculty of Mathematics Cetre for Educatio i Mathematics ad Computig Itermediate Math Circles November 4, 009 Coutig II Last time, after lookig at the product rule ad sum rule, we
More informationBeurling Integers: Part 2
Beurlig Itegers: Part 2 Isomorphisms Devi Platt July 11, 2015 1 Prime Factorizatio Sequeces I the last article we itroduced the Beurlig geeralized itegers, which ca be represeted as a sequece of real umbers
More information5 Sequences and Series
Bria E. Veitch 5 Sequeces ad Series 5. Sequeces A sequece is a list of umbers i a defiite order. a is the first term a 2 is the secod term a is the -th term The sequece {a, a 2, a 3,..., a,..., } is a
More informationn k <. If an even palindrome subsequence consists 2
Fidig all Palidrome Subsequeces o a Strig K.R. Chuag 1, R.C.T. Lee 2 ad C.H. Huag 3* 1, 2 Departmet of Computer Sciece, Natioal Chi-Na Uiversity, Puli, Natou Hsieh, Taiwa 545 3 Departmet of Computer Sciece
More informationSequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence
Sequeces A sequece of umbers is a fuctio whose domai is the positive itegers. We ca see that the sequece 1, 1, 2, 2, 3, 3,... is a fuctio from the positive itegers whe we write the first sequece elemet
More informationZeros of Polynomials
Math 160 www.timetodare.com 4.5 4.6 Zeros of Polyomials I these sectios we will study polyomials algebraically. Most of our work will be cocered with fidig the solutios of polyomial equatios of ay degree
More informationOn Performance Deviation of Binary Search Tree Searches from the Optimal Search Tree Search Structures
INTERNATIONAL JOURNAL OF COMPUTERS AND COMMUNICATIONS Issue, Volume, 7 O Performace Deviatio of Biary Search Tree Searches from the Optimal Search Tree Search Structures Ahmed Tarek Abstract Biary Search
More informationThe multiplicative structure of finite field and a construction of LRC
IERG6120 Codig for Distributed Storage Systems Lecture 8-06/10/2016 The multiplicative structure of fiite field ad a costructio of LRC Lecturer: Keeth Shum Scribe: Zhouyi Hu Notatios: We use the otatio
More informationCurve Sketching Handout #5 Topic Interpretation Rational Functions
Curve Sketchig Hadout #5 Topic Iterpretatio Ratioal Fuctios A ratioal fuctio is a fuctio f that is a quotiet of two polyomials. I other words, p ( ) ( ) f is a ratioal fuctio if p ( ) ad q ( ) are polyomials
More informationMatrices and vectors
Oe Matrices ad vectors This book takes for grated that readers have some previous kowledge of the calculus of real fuctios of oe real variable It would be helpful to also have some kowledge of liear algebra
More informationCS284A: Representations and Algorithms in Molecular Biology
CS284A: Represetatios ad Algorithms i Molecular Biology Scribe Notes o Lectures 3 & 4: Motif Discovery via Eumeratio & Motif Represetatio Usig Positio Weight Matrix Joshua Gervi Based o presetatios by
More informationChapter 4. Fourier Series
Chapter 4. Fourier Series At this poit we are ready to ow cosider the caoical equatios. Cosider, for eample the heat equatio u t = u, < (4.) subject to u(, ) = si, u(, t) = u(, t) =. (4.) Here,
More informationSequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018
CSE 353 Discrete Computatioal Structures Sprig 08 Sequeces, Mathematical Iductio, ad Recursio (Chapter 5, Epp) Note: some course slides adopted from publisher-provided material Overview May mathematical
More informationA Note on the Symmetric Powers of the Standard Representation of S n
A Note o the Symmetric Powers of the Stadard Represetatio of S David Savitt 1 Departmet of Mathematics, Harvard Uiversity Cambridge, MA 0138, USA dsavitt@mathharvardedu Richard P Staley Departmet of Mathematics,
More informationTheorem: Let A n n. In this case that A does reduce to I, we search for A 1 as the solution matrix X to the matrix equation A X = I i.e.
Theorem: Let A be a square matrix The A has a iverse matrix if ad oly if its reduced row echelo form is the idetity I this case the algorithm illustrated o the previous page will always yield the iverse
More informationarxiv: v1 [math.nt] 10 Dec 2014
A DIGITAL BINOMIAL THEOREM HIEU D. NGUYEN arxiv:42.38v [math.nt] 0 Dec 204 Abstract. We preset a triagle of coectios betwee the Sierpisi triagle, the sum-of-digits fuctio, ad the Biomial Theorem via a
More informationPROPERTIES OF AN EULER SQUARE
PROPERTIES OF N EULER SQURE bout 0 the mathematicia Leoard Euler discussed the properties a x array of letters or itegers ow kow as a Euler or Graeco-Lati Square Such squares have the property that every
More information