In computer science, there is the notion of the edit distance between two strings. 1  For example, the words dog and dot, which vary by only one letter, are closer than dog and cat, which differ by three letters. This idea is used in spell checkers and in coding theory, and is mathematically formalized in several different ways, such as: 1  Levenshtein distance. 2  Hamming distance. 3  Lee distance. 4  JaroâWinkler distance. 5  N-gram distance.
These companion plants can add elements to the soil, keep pests away, help with pollination or act as bait to draw pests to it instead of your vegetable plants. To companion plant bush and pole beans, you'll want to plan your garden in advance to allow room for all of your plants, not just the beans. Decide if you want to interplant your beans with other vegetables, flowers, herbs or a mixture of all three.
One source identified lettuce as the best dill companion plant. Companion planting dill with Growing angelica, cabbage, caraway, carrots, chili and bell peppers, eggplant, fennel, lavender or potatoes is not recommended as they are all poor companions for dill.