Jug Measuring: Algorithm and Complexity

碩士 === 國立交通大學 === 資訊工程系所 === 92 === We study the water jug problem and obtain new lower and upper bounds on the minimum number of measuring steps. These bounds are tight and significantly improve previous results. We prove that to compute the crucial number $\mu_{\mathbf{c}}(x)$ (i.e., $\min\limit...

Full description

Bibliographic Details
Main Authors: Min-Zheng Shieh, 謝旻錚
Other Authors: Shi-Chun Tsai
Format: Others
Language:en_US
Published: 2004
Online Access:http://ndltd.ncl.edu.tw/handle/06712731681083419419
id ndltd-TW-092NCTU5392075
record_format oai_dc
spelling ndltd-TW-092NCTU53920752015-10-13T13:04:22Z http://ndltd.ncl.edu.tw/handle/06712731681083419419 Jug Measuring: Algorithm and Complexity 量杯問題之演算法與複雜度 Min-Zheng Shieh 謝旻錚 碩士 國立交通大學 資訊工程系所 92 We study the water jug problem and obtain new lower and upper bounds on the minimum number of measuring steps. These bounds are tight and significantly improve previous results. We prove that to compute the crucial number $\mu_{\mathbf{c}}(x)$ (i.e., $\min\limits_{x=\mathbf{x\cdot c}}||\mathbf{x}||_1$, where $\mathbf{c} \in \mathbf{N}^n, x \in \mathbf{N}, ||\mathbf{x}||_1 =\sum_{i=1}^n |x_i|$) for estimating the minimum measuring steps is indeed a problem in $P^{NP}$. Moreover, we prove that testing whether $\mu_{\mathbf{c}}(x)$ is bounded by a fixed number is indeed NP-complete and thus the optimal jug measuring problem is NP-hard, which was also proved independently by~\cite{Havas}. Finally, we give a pseudo-polynomial time algorithm for computing $\mu_{\mathbf{c}}(x)$ and a polynomial time algorithm, which is based on {\it LLL} basis reduction algorithm, for approximating the minimum number of jug measuring steps efficiently. Shi-Chun Tsai 蔡錫鈞 2004 學位論文 ; thesis 45 en_US
collection NDLTD
language en_US
format Others
sources NDLTD
description 碩士 === 國立交通大學 === 資訊工程系所 === 92 === We study the water jug problem and obtain new lower and upper bounds on the minimum number of measuring steps. These bounds are tight and significantly improve previous results. We prove that to compute the crucial number $\mu_{\mathbf{c}}(x)$ (i.e., $\min\limits_{x=\mathbf{x\cdot c}}||\mathbf{x}||_1$, where $\mathbf{c} \in \mathbf{N}^n, x \in \mathbf{N}, ||\mathbf{x}||_1 =\sum_{i=1}^n |x_i|$) for estimating the minimum measuring steps is indeed a problem in $P^{NP}$. Moreover, we prove that testing whether $\mu_{\mathbf{c}}(x)$ is bounded by a fixed number is indeed NP-complete and thus the optimal jug measuring problem is NP-hard, which was also proved independently by~\cite{Havas}. Finally, we give a pseudo-polynomial time algorithm for computing $\mu_{\mathbf{c}}(x)$ and a polynomial time algorithm, which is based on {\it LLL} basis reduction algorithm, for approximating the minimum number of jug measuring steps efficiently.
author2 Shi-Chun Tsai
author_facet Shi-Chun Tsai
Min-Zheng Shieh
謝旻錚
author Min-Zheng Shieh
謝旻錚
spellingShingle Min-Zheng Shieh
謝旻錚
Jug Measuring: Algorithm and Complexity
author_sort Min-Zheng Shieh
title Jug Measuring: Algorithm and Complexity
title_short Jug Measuring: Algorithm and Complexity
title_full Jug Measuring: Algorithm and Complexity
title_fullStr Jug Measuring: Algorithm and Complexity
title_full_unstemmed Jug Measuring: Algorithm and Complexity
title_sort jug measuring: algorithm and complexity
publishDate 2004
url http://ndltd.ncl.edu.tw/handle/06712731681083419419
work_keys_str_mv AT minzhengshieh jugmeasuringalgorithmandcomplexity
AT xièmínzhēng jugmeasuringalgorithmandcomplexity
AT minzhengshieh liàngbēiwèntízhīyǎnsuànfǎyǔfùzádù
AT xièmínzhēng liàngbēiwèntízhīyǎnsuànfǎyǔfùzádù
_version_ 1717729748386316288