6 research outputs found
Space Efficient Algorithms for Breadth-Depth Search
Continuing the recent trend, in this article we design several
space-efficient algorithms for two well-known graph search methods. Both these
search methods share the same name {\it breadth-depth search} (henceforth {\sf
BDS}), although they work entirely in different fashion. The classical
implementation for these graph search methods takes time and bits of space in the standard word RAM model (with word size being
bits), where and denotes the number of edges and
vertices of the input graph respectively. Our goal here is to beat the space
bound of the classical implementations, and design space
algorithms for these search methods by paying little to no penalty in the
running time. Note that our space bounds (i.e., with bits of
space) do not even allow us to explicitly store the required information to
implement the classical algorithms, yet our algorithms visits and reports all
the vertices of the input graph in correct order.Comment: 12 pages, This work will appear in FCT 201
Fast Breadth-First Search in Still Less Space
It is shown that a breadth-first search in a directed or undirected graph
with vertices and edges can be carried out in time with
bits of working memory
Succinct Data Structures for Families of Interval Graphs
We consider the problem of designing succinct data structures for interval
graphs with vertices while supporting degree, adjacency, neighborhood and
shortest path queries in optimal time in the -bit word RAM
model. The degree query reports the number of incident edges to a given vertex
in constant time, the adjacency query returns true if there is an edge between
two vertices in constant time, the neighborhood query reports the set of all
adjacent vertices in time proportional to the degree of the queried vertex, and
the shortest path query returns a shortest path in time proportional to its
length, thus the running times of these queries are optimal. Towards showing
succinctness, we first show that at least bits
are necessary to represent any unlabeled interval graph with vertices,
answering an open problem of Yang and Pippenger [Proc. Amer. Math. Soc. 2017].
This is augmented by a data structure of size bits while
supporting not only the aforementioned queries optimally but also capable of
executing various combinatorial algorithms (like proper coloring, maximum
independent set etc.) on the input interval graph efficiently. Finally, we
extend our ideas to other variants of interval graphs, for example, proper/unit
interval graphs, k-proper and k-improper interval graphs, and circular-arc
graphs, and design succinct/compact data structures for these graph classes as
well along with supporting queries on them efficiently
๊ณต๊ฐ ํจ์จ์ ์ธ ๊ทธ๋ํ ์๊ณ ๋ฆฌ์ฆ์ ์ฑ๋ฅ ๋ถ์
ํ์๋
ผ๋ฌธ (์์ฌ)-- ์์ธ๋ํ๊ต ๋ํ์ : ๊ณต๊ณผ๋ํ ์ปดํจํฐ๊ณตํ๋ถ, 2019. 2. Satti, Srinivasa Rao.Various graphs from social networks or big data may contain gigantic data. Searching such graph requires memory scaling with graph. Asano et al. ISAAC (2014) initiated the study of space e๏ฌcient graph algorithms, and proposed algorithms for DFS and some applications using sub-linear space which take slightly more than linear time. Banerjee et al. ToCS 62(8), 1736-1762 (2018) proposed space e๏ฌcient graph algorithms based on read-only memory(ROM) model. Given a graph G with n vertices and m edges, their BFS algorithm spends O(m + n) time using 2n + o(n) bits. The space usage is further improved to nlg3 + o(n) bits with O(mlgn f(n)) time, where f(n) is extremely slow growing function of n. For DFS, their algorithm takes O(m + n) time using O(mlg(m/n)). Chakraborty et al. ESA (2018) introduced in-place model. The notion of in-place model is to relax the read-only restriction of ROM model to improve the space usage of ROM model. Algorithms based on in-place model improve space usage exponentially, to O(lgn) bits, at the expense of slower runtime. In this thesis, we focus on exploring proposed space e๏ฌcient graph algorithms of ROM model and in-place model in detail and evaluate performance of those algorithms. We implemented almost all the best-known space-efficient algorithms for BFS and DFS, and evaluated their performance. Along the way, we also implemented several space-e๏ฌcient data structures for representing bit vectors, strings, dictionaries etc.์์
๋คํธ์ํฌ๋ ๋น
๋ฐ์ดํฐ๋ก๋ถํฐ ์์ฑ๋ ๋ค์ํ ๊ทธ๋ํ๋ค์ ๋ฐฉ๋ํ ์์ ๋ฐ์ดํฐ๋ฅผ ํฌํจํ๊ณ ์๋ค. ์ด๋ฌํ ๊ทธ๋ํ๋ฅผ ํ์ํ๊ธฐ ์ํด์๋ ๊ทธ๋ํ์ ํฌ๊ธฐ์ ๋น๋กํ์ฌ ํ์ํ ๋ฉ๋ชจ๋ฆฌ์ ์ฉ๋์ด ๋์ด๋๋ค. Asano ๋ฑ(ISAAC (2014))์ ๊ณต๊ฐ ํจ์จ์ ๊ทธ๋ํ ์๊ณ ๋ฆฌ์ฆ ์ฐ๊ตฌ๋ฅผ ๊ฐ์ํ๋ค. ์ด ์ฐ๊ตฌ๋ฅผ ํตํด ์ ํ์ ์๊ฐ๋ณด๋ค ์ฝ๊ฐ ๋ ๊ฑธ๋ฆฌ๋ ๋์ ์ ์ ํ์ ๊ณต๊ฐ์ ์ฌ์ฉํ๋ DFS ์๊ณ ๋ฆฌ์ฆ๊ณผ ํ์ฉ ๋ฐฉ์๋ค์ด ์ ์๋๋ค. Banerjee ๋ฑ(ToCS 62(8), 1736-1762 (2018))์ ROM ๋ชจ๋ธ์ ๊ธฐ๋ฐ์ผ๋ก ํ๋ ๊ณต๊ฐ ํจ์จ์ ์ธ ๊ทธ๋ํ ์๊ณ ๋ฆฌ์ฆ๋ค์ ์ ์ํ๋ค. ๊ทธ๋ํ G์ n๊ฐ์ ์ ์ ๊ณผ m๊ฐ์ ๊ฐ์ ์ด ์ฃผ์ด์ก์ ๋, O(m + n)์ ์๊ฐ๊ณผ 2n + o(n) ์ ๋นํธ๋ฅผ ์ฌ์ฉํ๋ BFS๊ฐ ์ ์๋๊ณ , f(n)์ n์ ๋น๋กํด์ ๋งค์ฐ ๋๋ฆฌ๊ฒ ์ปค์ง๋ ํจ์๋ผ๊ณ ํ์ ๋, O(mlgnf(n))์ ์๊ฐ๊ณผ nlg3 + o(n)์ ๋นํธ๋ฅผ ์ฌ์ฉํ๋ ์๊ณ ๋ฆฌ์ฆ์ด ์ ์๋๋ค. DFS์ ๊ฒฝ์ฐ, O(m + n)์ ์๊ฐ๊ณผ O(mlg m n )์ ๋นํธ๋ฅผ ์ฌ์ฉํ๋ ์๊ณ ๋ฆฌ์ฆ์ด ์ ์๋๋ค. Chakraborty ๋ฑ(ESA (2018))์ ROM ๋ชจ๋ธ์ด ๊ฐ์ง๊ณ ์๋ ํ๊ณ์ ์ ๋๊ธฐ ์ํด ROM ๋ชจ๋ธ์ ์ ํ์ ์ ์ํ์ํค๋ in-place ๋ชจ๋ธ์ ์๊ฐํ๋ค. In-place ๋ชจ๋ธ์ ๊ธฐ๋ฐ์ผ๋ก ํ ์๊ณ ๋ฆฌ์ฆ๋ค์ n + O(lgn)์ ๋นํธ๋ฅผ ์ฌ์ฉํ์ฌ BFS์ DFS๋ฅผ ์ํํ ์ ์๊ณ , ์ถ๊ฐ์ ์ผ๋ก ๋ ๊ธด ์๊ฐ์ ์์ํ์ฌ O(lgn) ๋นํธ์ ๊ณต๊ฐ๋ง์ผ๋ก ์๊ณ ๋ฆฌ์ฆ์ ์ํํ ์ ์๋ค. ์ด ๋
ผ๋ฌธ์์๋ ROM ๋ชจ๋ธ๊ณผ in-place ๋ชจ๋ธ์์ ์ ์๋ ๋ค์ํ ์๊ณ ๋ฆฌ์ฆ๋ค์ ์ฐ๊ตฌ ๋ฐ ๊ตฌํํ๊ณ ์คํ์ ํตํ์ฌ ์ด๋ค ์๊ณ ๋ฆฌ์ฆ์ ์ํ ๊ฒฐ๊ณผ๋ฅผ ํ๊ฐํ๋ค.Abstract i
Contents iii
List of Figures v
List of Tables vi
Chapter 1 Introduction 1
1.1 Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Organization of the Paper . . . . . . . . . . . . . . . . . . . . . . 2
Chapter 2 Preliminaries 4
2.1 ROM Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2 In-place Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.3 Succinct Data Structure . . . . . . . . . . . . . . . . . . . . . . . 6
2.4 Changing Base Without Losing Space . . . . . . . . . . . . . . . 6
2.5 Dictionaries With Findany Operation . . . . . . . . . . . . . . . 7
Chapter 3 Breadth First Search 9
3.1 ROM model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 Rotate model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.3 Implicit model . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
iii
Chapter 4 Depth First Search 14
4.1 ROM model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2 Rotate model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.3 Implicit model . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Chapter 5 Experimental Results 22
5.1 BFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
5.2 DFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Chapter 6 Conclusion 40
์์ฝ 46
Acknowledgements 47Maste