Примеры использования Greedy algorithm на Английском языке и их переводы на Русский язык
{-}
-
Official
-
Colloquial
On the convergence of orderpreserving weak greedy algorithms.
For fractions of the form 2/n or 3/n, the greedy algorithm uses at most two or three terms respectively.
One can solve this problem using dynamic programming or greedy algorithm.
A coding for the Lazy caterer's sequence using the greedy algorithm can be found at sequence A204009 in the OEIS.
Keywords: greedy algorithm, teaching for programming, Olympiads in informatics, distance learning tools.
The problem is computationally NP-hard, although suboptimal greedy algorithms have been developed.
Then, using a simple greedy algorithm, the easy knapsack can be solved using O(n) arithmetic operations, which decrypts the message.
A coding for the sequence of the number 1 followed by the prime numbers using the greedy algorithm can be found at sequence A007924 in the OEIS.
The paper presents greedy algorithms that use the Frank-Woolf-type approach for finding a sparse monotonic regression.
It is also possible to construct a minimum-size set of edges that breaks all cycles efficiently,either using a greedy algorithm or by complementing a spanning forest.
This method is called the odd greedy algorithm and the expansions it creates are called odd greedy expansions.
Ear decompositions of 2-edge-connected graphs andopen ear decompositions of 2-vertex-connected graphs may be found by greedy algorithms that find each ear one at a time.
There is a standard example on which the greedy algorithm achieves an approximation ratio of log 2( n)/ 2{\displaystyle\log_{2}(n)/2.
A greedy algorithm is used: The new key is inserted in one of its two possible locations,"kicking out", that is, displacing, any key that might already reside in this location.
Consequently, practical decision-tree learning algorithms are based on heuristics such as the greedy algorithm where locally optimal decisions are made at each node.
A simple greedy algorithm that achieves this approximation factor computes a minimum cut in each connected components and removes the lightest one.
The perfectly orderable graphs are defined to be the graphs for which there is an ordering that is optimal for the greedy algorithm not just for the graph itself, but for all of its induced subgraphs.
Neighbor joining may be viewed as a greedy algorithm for optimizing a tree according to the'balanced minimum evolution'(BME) criterion.
The approximability of set covering is also well understood: a logarithmic approximation factor can be found by using a simple greedy algorithm, and finding a sublogarithmic approximation factor is NP-hard.
The project lays theoretical foundations for a greedy algorithms based on the concepts from thermodynamics, such as non-extensive entropy and free energy.
The circuit rank of a graph G may be described using matroid theory as the corank of the graphic matroid of G. Using the greedy property of matroids,this means that one can find a minimum set of edges that breaks all cycles using a greedy algorithm that at each step chooses an edge that belongs to at least one cycle of the remaining graph.
Like all greedy algorithms, greedy grammar inference algorithms make, in iterative manner, decisions that seem to be the best at that stage.
This greedy approach is known to give a 7⁄6-approximation to the optimal solution of the optimization version; that is, if the greedy algorithm outputs two sets A and B, then max(∑A,∑B)≤ 7/6 OPT, where OPT is the size of the larger set in the best possible partition.
The greedy algorithm for maximum coverage chooses sets according to one rule: at each stage, choose a set which contains the largest number of uncovered elements.
This algorithm is called Follow the leader, and is simply given round t{\displaystyle t} by: w t a r g m i n w∈ S∑ i 1 t- 1 v i( w){\displaystyle w_{t}=\operatorname{arg\, min}_{w\in S}\sum_{ i=1}^{ t-1} v_{ i}( w)}This method can thus be looked as a greedy algorithm.
For example, we can use a greedy algorithm where we look for the set which intersects the smallest number of other sets, add it to our solution, and remove the sets it intersects.
The minimal sets of edges that need to be contracted to make a given graph G factor-critical form the bases of a matroid,a fact that implies that a greedy algorithm may be used to find the minimum weight set of edges to contract to make a graph factor-critical, in polynomial time.
More specifically, the greedy algorithm provides a factor 1+ log|V| approximation of a minimum dominating set, and no polynomial time algorithm can achieve an approximation factor better than c log|V| for some c> 0 unless P NP.
If one wants an Egyptian fraction expansion in which the denominators are constrained in some way, it is possible to define a greedy algorithm in which at each step one chooses the expansion x y 1 d+ x d- y y d,{\displaystyle{\frac{ x}{ y}}={\ frac{ 1}{ d}}+{\ frac{xd-y}{yd}},} where d is chosen, among all possible values satisfying the constraints, as small as possible such that xd> y and such that d is distinct from all previously chosen denominators.
The greedy algorithm for Egyptian fractions, first described in 1202 by Fibonacci in his book Liber Abaci, finds an expansion in which each successive term is the largest unit fraction that is no larger than the remaining number to be represented.