{"title":"An Elementary Approach to Design and Analysis of Algorithms","authors":"L. Vermani, S. Vermani","doi":"10.1142/q0201","DOIUrl":"https://doi.org/10.1142/q0201","url":null,"abstract":"","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"41 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-06-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"122962429","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"BACK MATTER","authors":"","doi":"10.1142/9781786346766_bmatter","DOIUrl":"https://doi.org/10.1142/9781786346766_bmatter","url":null,"abstract":"","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"26 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"123757604","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Flow Networks","authors":"","doi":"10.1142/9781786346766_0011","DOIUrl":"https://doi.org/10.1142/9781786346766_0011","url":null,"abstract":"Alon Efrat Slides courtesy of Charles Leiserson with small changes by Carola Wenk Flow networks Definition. A flow network is a directed graph G = (V, E) with two distinguished vertices: a source s and a sink t. Each edge (u, v) ∈ E has a nonnegative capacity c(u, v). If (u, v) ∉ E, then c(u, v) = 0. Example: s t 3 2 3 3 2 2 3 3 1 2 1 Flow networks Definition. A positive flow on G is a function p : V × V → R satisfying the following: • Capacity constraint: For all u, v ∈ V, 0 ≤ p(u, v) ≤ c(u, v). • Flow conservation: For all u ∈ V – {s, t}, 0) , () , (= − ∑ ∑ ∈ ∈ V v V v u v p v u p. The value of a flow is the net flow out of the source: ∑ ∑ ∈ ∈ − V v V v s v p v s p) , () , (.","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"79 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"132300414","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"All Pairs Shortest Paths","authors":"Eric Price, UT Austin, Cs","doi":"10.1142/9781786346766_0010","DOIUrl":"https://doi.org/10.1142/9781786346766_0010","url":null,"abstract":"• The weight of path p =< v 0 , v 1 ,. .. , v k > is the sum of the weights of its constituent edges: w(p) = k i=1 w(v i−1 , v i). • The shortest-path weight from u to v is δ(u, v) = { min{w(p)} if there is a path p from u to v , ∞ otherwise. • A shortest path from vertex u to vertex v is then defined as any path p with weight w(p) = δ(u, v). All Pairs Shortest Paths: Compute d(u, v) the shortest path distance from u to v for all pairs of vertices u and v.","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"351 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"134192765","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Polynomial Multiplication, FFT and DFT","authors":"","doi":"10.1142/9781786346766_0012","DOIUrl":"https://doi.org/10.1142/9781786346766_0012","url":null,"abstract":"","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"124 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"121715693","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"FRONT MATTER","authors":"","doi":"10.1142/9781786346766_fmatter","DOIUrl":"https://doi.org/10.1142/9781786346766_fmatter","url":null,"abstract":"","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"38 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115119844","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Dynamic Programming","authors":"Avishek Dutta","doi":"10.1142/9781786346766_0006","DOIUrl":"https://doi.org/10.1142/9781786346766_0006","url":null,"abstract":"","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"52 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129070535","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"NP-Complete Problems","authors":"D. Rosenkrantz, R. Stearns","doi":"10.1142/9781786346766_0015","DOIUrl":"https://doi.org/10.1142/9781786346766_0015","url":null,"abstract":"There are many practical computational problems for which no effective computer algorithms have been devised. Many of these seemingly intractable problems belong to a class of problems known as NP-complete problems. NP stands for nondeterministic polynomial, a concept discussed below. The only known algorithms for these problems require an amount of time that is an exponential function of the problem size (measured by some parameter, n, on which the problem depends). Such algorithms are called exponential time algorithms. Technically, problem size is measured by the number of bits in the problem description, but often the running time of an algorithm is more conveniently expressed in terms of some other (roughly equivalent) measure of the amount of input data. For problems of size n, exponential time algorithms may take time 2n, 2n1/2, 3n2, etc. In contrast, many problems can be solved by algorithms that require an amount of time that is a polynomial function of the problem size. These algorithms are called polynomial time algorithms. For problems of size n, they may take time n, n log n, n2, n3, etc. Because polynomials grow more slowly than exponentials, polynomial time algorithms (even with a large exponent) are efficient in comparison with exponential time algorithms. As a first cut at categorizing algorithm complexity, polynomial time algorithms are regarded as \"efficient,\" and exponential time algorithms as \"inefficient.\"","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"7 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"116843557","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
{"title":"Elementary Graph Algorithms","authors":"U. Dogrusoz","doi":"10.1142/9781786346766_0007","DOIUrl":"https://doi.org/10.1142/9781786346766_0007","url":null,"abstract":"– How to implement the for-loop (i) if an adjacency matrix is used to represent the graph and (ii) if adjacency lists are used? – How many times is dfs called in all? – How many times is “if visited[·] = 0” executed in all? – What’s the over-all time complexity of the command “for each node w such that (v, w) ∈ E” • Time complexity – Using adjacency matrix: O(n) – Using adjacency lists: O(|V |+ |E|)","PeriodicalId":172435,"journal":{"name":"Primers in Electronics and Computer Science","volume":"29 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2019-05-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"124439536","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}