Math & Science ⇒ Latex creating algorithm
-
- Posts: 1
- Joined: Sun May 24, 2020 11:42 am
Latex creating algorithm
In the beginning the must be 2 inputs: n= number of elements in the array, and k = number of the nearest values to the median of the array.
Example : 1,15,6,7,8,9,2,19,11
k=2 n=9
(9/2) => 4 , do the 4. element of the array is 7=> is the median, so the nearest k number to the median is (6,8).
Can anyone please help me with this pls
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis