Perturbation (astronomy): Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Teapeat
 
en>Gob Lofa
Line 1: Line 1:
It is very common to have a dental emergency -- a fractured tooth, an abscess, or severe pain when chewing. Over-the-counter pain medication is just masking the problem. Seeing an emergency dentist is critical to getting the source of the problem diagnosed and corrected as soon as possible.<br><br><br><br>Here are some common dental emergencies:<br>Toothache: The most common dental emergency. This generally means a badly decayed tooth. As the pain affects the tooth's nerve, treatment involves gently removing any debris lodged in the cavity being careful not to poke deep as this will cause severe pain if the nerve is touched. Next rinse vigorously with warm water. Then soak a small piece of cotton in oil of cloves and insert it in the cavity. This will give temporary relief until a dentist can be reached.<br><br>At times the pain may have a more obscure location such as decay under an old filling. As this can be only corrected by a dentist there are two things you can do to help the pain. Administer a pain pill (aspirin or some other analgesic) internally or dissolve a tablet in a half glass (4 oz) of warm water holding it in the mouth for several minutes before spitting it out. DO NOT PLACE A WHOLE TABLET OR ANY PART OF IT IN THE TOOTH OR AGAINST THE SOFT GUM TISSUE AS IT WILL RESULT IN A NASTY BURN.<br><br>Swollen Jaw: This may be caused by several conditions the most probable being an abscessed tooth. In any case the treatment should be to reduce pain and swelling. An ice pack held on the outside of the jaw, (ten minutes on and ten minutes off) will take care of both. If this does not control the pain, an analgesic tablet can be given every four hours.<br><br>Other Oral Injuries: Broken teeth, cut lips, bitten tongue or lips if severe means a trip to a dentist as soon as possible. In the mean time rinse the mouth with warm water and place cold compression the face opposite the injury. If there is a lot of bleeding, apply direct pressure to the bleeding area. If bleeding does not stop get patient to the emergency room of a hospital as stitches may be necessary.<br><br>Prolonged Bleeding Following Extraction: Place a gauze pad or better still a moistened tea bag over the socket and have the patient bite down gently on it for 30 to 45 minutes. The tannic acid in the tea seeps into the tissues and often helps stop the bleeding. If bleeding continues after two hours, call the dentist or take patient to the emergency room of the nearest hospital.<br><br>Broken Jaw: If you suspect the patient's jaw is broken, bring the upper and lower teeth together. Put a necktie, handkerchief or towel under the chin, tying it over the head to immobilize the jaw until you can get the patient to a dentist or the emergency room of a hospital.<br><br>Painful Erupting Tooth: In young children teething pain can come from a loose baby tooth or from an erupting permanent tooth. Some relief can be given by crushing a little ice and wrapping it in gauze or a clean piece of cloth and putting it directly on the tooth or gum tissue where it hurts. The numbing effect of the cold, along with an appropriate dose of aspirin, usually provides temporary relief.<br><br>In young adults, an erupting 3rd molar (Wisdom tooth), especially if it is impacted, can cause the jaw to swell and be quite painful. Often the gum around the tooth will show signs of infection. Temporary relief can be had by giving aspirin or some other painkiller and by dissolving an aspirin in half a glass of warm water and holding this solution in the mouth over the sore gum. AGAIN DO NOT PLACE A TABLET DIRECTLY OVER THE GUM OR CHEEK OR USE THE ASPIRIN SOLUTION ANY STRONGER THAN RECOMMENDED TO PREVENT BURNING THE TISSUE. The swelling of the jaw can be reduced by using an ice pack on the outside of the face at intervals of ten minutes on and ten minutes off.<br><br>If you liked this article and you would certainly like to get more info regarding [http://www.youtube.com/watch?v=90z1mmiwNS8 Washington DC Dentist] kindly see our own web site.
{{Incomplete|date=November 2011}}
 
A '''random permutation''' is a [[random]] ordering of a set of objects, that is, a [[permutation]]-valued [[random variable]].  The use of random permutations is often fundamental to fields that use [[randomized algorithm]]s such as [[coding theory]], [[cryptography]], and [[simulation]]. A good example of a random permutation is the [[shuffling]] of a [[card deck|deck of cards]]:  this is ideally a random permutation of the 52 cards.
 
==Generating random permutations==
===Entry-by-entry brute force method===
One method of generating a random permutation of a set of length ''n'' [[uniform distribution (discrete)|uniformly at random]] (i.e., each of the ''n''! [[permutation]]s is equally likely to appear) is to generate a sequence by taking a random number between 1 and ''n'' sequentially, ensuring that there is no repetition, and interpreting this sequence (''x''<sub>1</sub>, ..., ''x''<sub>''n''</sub>) as the permutation
 
: <math>\begin{pmatrix}
1 & 2 & 3 & \cdots & n \\
x_1 & x_2 & x_3 & \cdots & x_n \\
\end{pmatrix},</math>
 
shown here in [[permutation#Notation|two-line notation]].
 
This brute-force method will require occasional retries whenever the random number picked is a repeat of a number already selected. This can be avoided if, on the ''i''th step (when ''x''<sub>1</sub>, ..., ''x''<sub>''i'' &minus; 1</sub> have already been chosen), one chooses a number ''j'' at random between 1 and ''n'' &minus; ''i'' + 1 and sets ''x''<sub>''i''</sub> equal to the ''j''th largest of the unchosen numbers.
 
===Knuth shuffles===
A simple [[algorithm]] to generate a permutation of ''n'' items uniformly at random without retries, known as the [[Knuth shuffle]], is to start with any permutation (for example, the [[Identity function|identity permutation]]), and then go through the positions 1 through ''n'' &minus; 1, and for each position ''i'' '''swap''' the element currently there with a randomly chosen element from positions ''i'' through ''n'', inclusive. It's easy to verify that any permutation of ''n'' elements will be produced by this algorithm with probability exactly 1/''n''!, thus yielding a uniform distribution over all such permutations.
 
The initializaton to the identity permutation and the shuffling may be combined, as in the following example. It requires a function <code>uniform(m)</code> which returns a random integer between 0 and ''m'' inclusive.
 
<source lang="c">
unsigned uniform(unsigned m); /* Returns a random integer 0 <= uniform(m) <= m */
 
unsigned permute(unsigned permutation[], unsigned n)
{
    unsigned i;
    for (i = 0; i < n; i++) {
        unsigned j = uniform(i);
        permutation[i] = permutation[j];
        permutation[j] = i;
    }
}
</source>
 
Note that the first assignment to <code>permutation[i]</code> might be copying an uninitialized value, if <code>j</code> happens to be equal to <code>i</code>. However, in this case, it is immediately overwritten with a defined value on the next line.
 
It is also important to note that the <code>uniform()</code> function can ''not'' be implemented simply as <code>random() % (m+1)</code> unless a bias in the results is acceptable.
 
==Statistics on random permutations==
===Fixed points===
{{main|Rencontres numbers}}
The [[probability distribution]] of the number of [[Fixed point (mathematics)|fixed points]] of a uniformly distributed random permutation approaches a [[Poisson distribution]] with [[expected value]] 1 as ''n'' grows. In particular, it is an elegant application of the [[inclusion-exclusion principle]] to show that the probability that there are no fixed points approaches 1/''e''. The first ''n'' [[moment (mathematics)|moments]] of this distribution are exactly those of the Poisson distribution.
 
== Randomness testing ==
As with all random processes, the quality of the resulting distribution of an implementation of a randomized algorithm such as the Knuth shuffle (i.e., how close it is to the desired uniform distribution) depends on the quality of the underlying source of randomness, such as a [[pseudorandom number generator]]. There are many possible [[randomness test]]s for random permutations, such as some of the [[Diehard tests]]. A typical example of such a test is to take some [[permutation statistic]] for which the distribution is known and test whether the distribution of this statistic on a set of randomly generated permutations closely approximates the true distribution.
 
== See also ==
* [[Ewens's sampling formula]] — a connection with [[population genetics]]
* [[Golomb–Dickman constant]]
* [[Faro shuffle|Perfect shuffle]]
* [[Random permutation statistics]]
* [[Shuffle#Shuffling algorithms|Shuffling algorithms]] — random sort method, iterative exchange method
 
== External links ==
* [http://mathworld.wolfram.com/RandomPermutation.html Random permutation] at [[MathWorld]]
* [http://www.techuser.net/randpermgen.html Random permutation generation] -- detailed and practical explanation of Knuth shuffle algorithm and its variants for generating ''k''-permutations (permutations of ''k'' elements chosen from a list) and ''k''-subsets (generating a subset of the elements in the list without replacement) with pseudocode
 
[[Category:Permutations]]
[[Category:Randomness]]

Revision as of 20:15, 25 January 2014

Template:Incomplete

A random permutation is a random ordering of a set of objects, that is, a permutation-valued random variable. The use of random permutations is often fundamental to fields that use randomized algorithms such as coding theory, cryptography, and simulation. A good example of a random permutation is the shuffling of a deck of cards: this is ideally a random permutation of the 52 cards.

Generating random permutations

Entry-by-entry brute force method

One method of generating a random permutation of a set of length n uniformly at random (i.e., each of the n! permutations is equally likely to appear) is to generate a sequence by taking a random number between 1 and n sequentially, ensuring that there is no repetition, and interpreting this sequence (x1, ..., xn) as the permutation

(123nx1x2x3xn),

shown here in two-line notation.

This brute-force method will require occasional retries whenever the random number picked is a repeat of a number already selected. This can be avoided if, on the ith step (when x1, ..., xi − 1 have already been chosen), one chooses a number j at random between 1 and ni + 1 and sets xi equal to the jth largest of the unchosen numbers.

Knuth shuffles

A simple algorithm to generate a permutation of n items uniformly at random without retries, known as the Knuth shuffle, is to start with any permutation (for example, the identity permutation), and then go through the positions 1 through n − 1, and for each position i swap the element currently there with a randomly chosen element from positions i through n, inclusive. It's easy to verify that any permutation of n elements will be produced by this algorithm with probability exactly 1/n!, thus yielding a uniform distribution over all such permutations.

The initializaton to the identity permutation and the shuffling may be combined, as in the following example. It requires a function uniform(m) which returns a random integer between 0 and m inclusive.

unsigned uniform(unsigned m); /* Returns a random integer 0 <= uniform(m) <= m */

unsigned permute(unsigned permutation[], unsigned n)
{
    unsigned i;
    for (i = 0; i < n; i++) {
        unsigned j = uniform(i);
        permutation[i] = permutation[j];
        permutation[j] = i;
    }
}

Note that the first assignment to permutation[i] might be copying an uninitialized value, if j happens to be equal to i. However, in this case, it is immediately overwritten with a defined value on the next line.

It is also important to note that the uniform() function can not be implemented simply as random() % (m+1) unless a bias in the results is acceptable.

Statistics on random permutations

Fixed points

Mining Engineer (Excluding Oil ) Truman from Alma, loves to spend time knotting, largest property developers in singapore developers in singapore and stamp collecting. Recently had a family visit to Urnes Stave Church. The probability distribution of the number of fixed points of a uniformly distributed random permutation approaches a Poisson distribution with expected value 1 as n grows. In particular, it is an elegant application of the inclusion-exclusion principle to show that the probability that there are no fixed points approaches 1/e. The first n moments of this distribution are exactly those of the Poisson distribution.

Randomness testing

As with all random processes, the quality of the resulting distribution of an implementation of a randomized algorithm such as the Knuth shuffle (i.e., how close it is to the desired uniform distribution) depends on the quality of the underlying source of randomness, such as a pseudorandom number generator. There are many possible randomness tests for random permutations, such as some of the Diehard tests. A typical example of such a test is to take some permutation statistic for which the distribution is known and test whether the distribution of this statistic on a set of randomly generated permutations closely approximates the true distribution.

See also

External links

  • Random permutation at MathWorld
  • Random permutation generation -- detailed and practical explanation of Knuth shuffle algorithm and its variants for generating k-permutations (permutations of k elements chosen from a list) and k-subsets (generating a subset of the elements in the list without replacement) with pseudocode