ArticleslgStudy

computer science

Fly algorithm

Fly algorithm is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Fly algorithm rather than just read about it. In short: The Fly Algorithm is an approach in 3D reconstruction that utilizes clusters of points ("flies") corresponding to different nearby objects via genetic algorithms and stereovision principles. The resulting reconstruction is partial, but can be used to recognize obstacles in robot navigation and other applications.

Fly algorithm — main illustration
Fly algorithm — illustration

Key takeaways

  • Fly algorithm belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Fly algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Fly algorithm from memory before moving on to harder problems.

Reference excerpt

The Fly Algorithm is an approach in 3D reconstruction that utilizes clusters of points ("flies") corresponding to different nearby objects via genetic algorithms and stereovision principles. The resulting reconstruction is partial, but can be used to recognize obstacles in robot navigation and other applications. This technique has a high computational load due to numerous inputs and parameters, making performance optimization difficult.

History The Fly Algorithm is a type of cooperative coevolution based on the Parisian approach. The Fly Algorithm has first been developed in 1999 in the scope of the application of Evolutionary algorithms to computer stereo vision. Unlike the classical image-based approach to stereovision, which extracts image primitives then matches them in order to obtain 3D information, the Fly Algorithm is based on the direct exploration of the 3D space of the scene. A fly is defined as a 3D point described by its coordinates (x, y, z). Once a random population of flies has been created in a search space corresponding to the field of view of the cameras, its evolution (based on the Evolutionary Strategy paradigm) used a fitness function that evaluates how likely the fly is lying on the visible surface of an object, based on the consistency of its image projections. To this end, the fitness function uses the grey levels, colours and/or textures of the calculated fly's projections. The first application field of the Fly Algorithm has been stereovision. While classical `image priority' approaches use matching features from the stereo images in order to build a 3D model, the Fly Algorithm directly explores the 3D space and uses image data to evaluate the validity of 3D hypotheses. A variant called the "Dynamic Flies" defines the fly as a 6-uple (x, y, z, x’, y’, z’) involving the fly's velocity. The velocity components are not explicitly taken into account in the fitness calculation but are used in the flies' positions updating and are subject to similar genetic operators (mutation, crossover). The application of Flies to obstacle avoidance in vehicles exploits the fact that the population of flies is a time compliant, quasi-continuously evolving representation of the scene to directly generate vehicle control signals from the flies. The use of the Fly Algorithm is not strictly restricted to stereo images, as other sensors may be added (e.g. acoustic proximity sensors, etc.) as additional terms to the fitness function being optimised. Odometry information can also be used to speed up the updating of flies' positions, and conversely the flies positions can be used to provide localisation and mapping information. Another application field of the Fly Algorithm is reconstruction for emission Tomography in nuclear medicine. The Fly Algorithm has been successfully applied in single-photon emission computed tomography and positron emission tomography . Here, each fly is considered a photon emitter and its fitness is based on the conformity of the simulated illumination of the sensors with the actual pattern observed on the sensors. Within this application, the fitness function has been re-defined to use the new concept of 'marginal evaluation'. Here, the fitness of one individual is calculated as its (positive or negative) contribution to the quality of the global population. It is based on the leave-one-out cross-validation principle. A global fitness function evaluates the quality of the population as a whole; only then the fitness of an individual (a fly) is calculated as the difference between the global fitness values of the population with and without the particular fly whose individual fitness function has to be evaluated. In the fitness of each fly is considered as a `level of confidence'. It is used during the voxelisation process to tweak the fly's individual footprint using implicit modelling (such as metaballs). It produces smooth results that are more accurate. More recently it has been used in digital art to generate mosaic-like images or spray paint. Examples of images can be found on YouTube

Parisian evolution Here, the population of individuals is considered as a society where the individuals collaborate toward a common goal. This is implemented using an evolutionary algorithm that includes all the common genetic operators (e.g. mutation, cross-over, selection). The main difference is in the fitness function. Here two levels of fitness function are used:

A local fitness function to assess the performance of a given individual (usually used during the selection process). A global fitness function to assess the performance of the whole population. Maximising (or minimising depending on the problem considered) this global fitness is the goal of the population. In addition, a diversity mechanism is required to avoid individuals gathering in only a few areas of the search space. Another difference is in the extraction of the problem solution once the evolutionary loop terminates. In classical evolutionary approaches, the best individual corresponds to the solution and the rest of the population is discarded. Here, all the individuals (or individuals of a sub-group of the population) are collated to build the problem solution. The way the fitness functions are constructed and the way the solution extraction is made are of course problem-dependent. Examples of Parisian Evolution applications include:

The Fly algorithm. Text-mining. Hand gesture recognition. Modelling complex interactions in industrial agrifood process. Positron Emission Tomography reconstruction.

Disambiguation

… excerpt ends here. Continue reading the full article.

Illustrations

Fly algorithm illustration
Fly algorithm illustration
Fly algorithm: Iterative correction in tomography reconstruction.
Iterative correction in tomography reconstruction.
Fly algorithm illustration
Fly algorithm illustration

Worked examples

Example 1 — a first encounter with Fly algorithm

Start with the simplest possible case. Write down what Fly algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Fly algorithm before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Fly algorithm ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Fly algorithm

In research
Fly algorithm appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Fly algorithm in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Fly algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer science, Evolutionary algorithms, Evolutionary computation, so understanding it makes those chapters shorter.
In everyday life
Look for Fly algorithm outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Fly algorithm” →

How to study Fly algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Fly algorithm means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Fly algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Fly algorithm in simple terms?

The Fly Algorithm is an approach in 3D reconstruction that utilizes clusters of points ("flies") corresponding to different nearby objects via genetic algorithms and stereovision principles. The resulting reconstruction is partial, but can be used to recognize obstacles in robot navigation and othe…

Why does Fly algorithm matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Fly algorithm?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Fly algorithm.

Tags

  • Computer science
  • Evolutionary algorithms
  • Evolutionary computation
  • Genetic algorithms
  • Heuristics
  • Nature-inspired metaheuristics
  • Optimization algorithms and methods

Keep exploring