首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到20条相似文献,搜索用时 62 毫秒
1.
The most efficient currently known algorithms for two-dimensional pattern matching with rotations have a worst case time complexity of O(n2m3)O(n2m3), where the size of the text is n×nn×n and the size of the pattern is m×mm×m. In this paper we present a new algorithm for the problem whose running time is O(n2m2)O(n2m2).  相似文献   

2.
3.
4.
We consider the problem of grooming paths in all-optical networks with tree topology so as to minimize the switching cost, measured by the total number of used ADMs. We first present efficient approximation algorithms with approximation factor of 2ln(δ⋅g)+o(ln(δ⋅g))2ln(δg)+o(ln(δg)) for any fixed node degree bound δδ and grooming factor gg, and 2lng+o(lng)2lng+o(lng) in unbounded degree directed trees, respectively. In the attempt to extend our results to general undirected trees, we completely characterize the complexity of the problem in star networks by providing polynomial time optimal algorithms for g≤2g2 and proving the intractability of the problem for any fixed g>2g>2. While for general topologies, the problem was known to be NP-hard gg not constant, the complexity for fixed values of gg was still an open question.  相似文献   

5.
Given a graph GG, an integer kk, and a demand set D={(s1,t1),…,(sl,tl)}D={(s1,t1),,(sl,tl)}, the kk-Steiner Forest problem finds a forest in graph GG to connect at least kk demands in DD such that the cost of the forest is minimized. This problem was proposed by Hajiaghayi and Jain in SODA’06. Thereafter, using a Lagrangian relaxation technique, Segev et al. gave the first approximation algorithm to this problem in ESA’06, with performance ratio O(n2/3logl)O(n2/3logl). We give a simpler and faster approximation algorithm to this problem with performance ratio O(n2/3logk)O(n2/3logk) via greedy approach, improving the previously best known ratio in the literature.  相似文献   

6.
A folded hypercube is basically a hypercube with additional links augmented, where the additional links connect all pairs of nodes with longest distance in the hypercube. In an nn-dimensional folded hypercube, it has been shown that n+1n+1 node-disjoint paths from one source node to other n+1n+1 (mutually) distinct destination nodes, respectively, can be constructed in O(n4)O(n4) time so that their maximal length is not greater than ⌈n/2⌉+1n/2+1, where n+1n+1 is the connectivity and ⌈n/2⌉n/2 is the diameter. Besides, their maximal length is minimized in the worst case. In this paper, we further show that by minimizing the computations of minimal routing functions, these node-disjoint paths can be constructed in O(n3)O(n3) time, which is more efficient, and is hard to be reduced because it must take O(n3)O(n3) time to compute a minimal routing function by solving a corresponding maximum weighted bipartite matching problem with the best known algorithm.  相似文献   

7.
In this paper we study energy-aware scheduling that trades energy consumption against a traditional performance measure of delay. We use the power-rate function f(x)=c+xαf(x)=c+xα for x>0x>0 and f(0)=0f(0)=0 to model the power consumption, where c>0c>0 represents the base power. We give a definition of a rate-adaptive version of the Weighted Fair Queueing scheduling algorithm, and prove its energy consumption is within a bounded factor of the best possible when the algorithm guarantees the classic end-to-end delay for every connection.  相似文献   

8.
9.
10.
We investigate the group key management problem for broadcasting applications. Previous work showed that, in handling key updates, batch rekeying can be more cost effective than individual rekeying. One model for batch rekeying is to assume that every user has probability pp of being replaced by a new user during a batch period with the total number of users unchanged. Under this model, it was recently shown that an optimal key tree can be constructed in linear time when pp is a constant and in O(n4)O(n4) time when p→0p0. In this paper, we investigate more efficient algorithms for the case p→0p0, i.e., when membership changes are sparse. We design an O(n)O(n) heuristic algorithm for the sparse case and show that it produces a nearly 2-approximation to the optimal key tree. Simulation results show that its performance is even better in practice. We also design a refined heuristic algorithm and show that it achieves an approximation ratio of 1+?1+? for any fixed ?>0?>0 and nn, as p→0p0. Finally, we give another approximation algorithm for any p∈(0,0.693)p(0,0.693) which is shown to be quite good by our simulations.  相似文献   

11.
12.
13.
We investigate a periodic version of the Benjamin-Ono (BO) equation associated with a discrete Laplacian. We find some special solutions to this equation, and calculate the values of the first two integrals of motion I1I1 and I2I2 corresponding to these solutions. It is found that there exists a strong resemblance between them and the spectra for the Macdonald qq-difference operators. To better understand the connection between these classical and quantum integrable systems, we consider the special degenerate case corresponding to q=0q=0 in more detail. Namely, we give general solutions to this degenerate periodic BO, obtain explicit formulas representing all the integrals of motions InIn (n=1,2,…n=1,2,), and successfully identify it with the eigenvalues of Macdonald operators in the limit q→0q0, i.e. the limit where Macdonald polynomials tend to the Hall–Littlewood polynomials.  相似文献   

14.
15.
Orthogonal packing problems are natural multidimensional generalizations of the classical bin packing problem and knapsack problem and occur in many different settings. The input consists of a set I={r1,…,rn}I={r1,,rn} of dd-dimensional rectangular items ri=(ai,1,…,ai,d)ri=(ai,1,,ai,d) and a space QQ. The task is to pack the items in an orthogonal and non-overlapping manner without using rotations into the given space. In the strip packing setting the space QQ is given by a strip of bounded basis and unlimited height. The objective is to pack all items into a strip of minimal height. In the knapsack packing setting the given space QQ is a single, usually unit sized bin and the items have associated profits pipi. The goal is to maximize the profit of a selection of items that can be packed into the bin.  相似文献   

16.
Dimensional analysis yields a new scaling formula for the Linpack benchmark. The computational power r(p0,q0)r(p0,q0) on a set of processors decomposed into a (p0,q0)(p0,q0) grid determines the computational power r(p,q)r(p,q) on a set of processors decomposed into a (p,q)(p,q) grid by the formula r(p,q)=(p/p0)α(q/q0)βr(p0,q0)r(p,q)=(p/p0)α(q/q0)βr(p0,q0). The two scaling parameters αα and ββ measure interprocessor communication overhead required by the algorithm. A machine that scales perfectly corresponds to α=β=1α=β=1; a machine that scales not at all corresponds to α=β=0α=β=0. We have determined the two scaling parameters by imposing a fixed-time constraint on the problem size such that the execution time remains constant as the number of processors changes. Results for a collection of machines confirm that the formula suggested by dimensional analysis is correct. Machines with the same values for these parameters are self-similar. They scale the same way even though the details of their specific hardware and software may be quite different.  相似文献   

17.
We study the state complexity of certain simple languages. If AA is an alphabet of kk letters, then a kk-language   is a nonempty set of words of length kk, that is, a uniform language of length kk. We show that the minimal state complexity of a kk-language is k+2k+2, and the maximal, (kk−1−1)/(k−1)+2k+1(kk11)/(k1)+2k+1. We prove constructively that, for every ii between the minimal and maximal bounds, there is a language of state complexity ii. We introduce a class of automata accepting sets of words that are permutations of AA; these languages define a complete hierarchy of complexities between k2−k+3k2k+3 and 2k+12k+1. The languages of another class of automata, based on kk-ary trees, define a complete hierarchy of complexities between 2k+12k+1 and (kk−1−1)/(k−1)+2k+1(kk11)/(k1)+2k+1. This provides new examples of uniform languages of maximal complexity.  相似文献   

18.
19.
In this work we study the size of Boyer–Moore automata introduced in Knuth, Morris & Pratt’s famous paper on pattern matching. We experimentally show that a finite class of binary patterns produce very large Boyer–Moore automata, and find one particular case which we conjecture, generates automata of size Ω(m6)Ω(m6). Further experimental results suggest that the maximal size could be a polynomial of O(m7)O(m7), or even an exponential O(20.4m)O(20.4m), where mm is the length of the pattern.  相似文献   

20.
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号