ECCC-Report TR10-094https://eccc.weizmann.ac.il/report/2010/094Comments and Revisions published for TR10-094en-usFri, 04 Jun 2010 17:32:45 +0300
Paper TR10-094
| Streaming algorithms for some problems in log-space. |
Ajesh Babu,
Nutan Limaye,
Girish Varma
https://eccc.weizmann.ac.il/report/2010/094In this paper, we give streaming algorithms for some problems which are known to be in deterministic log-space, when the number of passes made on the input is unbounded. If the input data is massive,
the conventional deterministic log-space algorithms may not run efficiently. We study the complexity of the problems when the number of passes is bounded.
The first problem we consider is the membership testing problem for deterministic linear languages, DLIN. Extending the recent work of Magniez et al. (to appear in STOC 2010), we study the use of fingerprinting technique for this problem. We give the following streaming algorithms for the membership testing of DLINs: a randomized one pass algorithm
that uses $O(\log n)$ space (one-sided error, inverse polynomial error probability), and also a $p$-pass
$O(n/p)$-space deterministic algorithm. We also prove that there exists a language in DLIN, for which any p-pass deterministic algorithm for membership testing, requires $\Omega(n/p)$ space. We also study the application of fingerprinting technique to visibly pushdown languages, VPLs.
The other problem we consider is, given a degree sequence and a graph, checking whether the graph has the given degree sequence, DEGSEQ. We prove that, any p-pass deterministic algorithm that takes as its
input a degree sequence, followed by an adjacency
list of a graph, requires $\Omega(n/p)$ space to decide DEGSEQ. However, using randomness, for a more general input format: degree sequence, followed by a list of edges in any arbitrary order, DEGSEQ can be decided in $O(\log n)$ space. We also give a $p$-pass, $O(n/p)$-space deterministic algorithm for DEGSEQ.
Fri, 04 Jun 2010 17:32:45 +0300https://eccc.weizmann.ac.il/report/2010/094