Median algorithm 91,92,93,93,93,93,94,95, what is the median of this group of data

Median algorithm 91,92,93,93,93,93,94,95, what is the median of this group of data


91,92,93,93,93,93,94,95,
Since there are eight digits, the median of this set of data is the average of the 4th and 5th digits
The median = (93 + 93) / 2 = 93



Using some algorithm to find the median
Let x [0: n-1] and Y [0: n-1] be two arrays, and each array contains n ordered numbers. Design an algorithm to find out the median of 2n numbers of X and y... analyze the algorithm ideas, and talk about the specific points! (I study c + +...) Thank you!


The problem is the same as finding the largest number of N and N + 1 in the 2n numbers of X and Y. assuming that X and y are arranged in ascending order, the simplest method is to delete the smaller of the first elements of two arrays continuously, delete n-1 times, and the remaining minimum sum decimal is the goal. But the time complexity of this algorithm is O (n)



Special method to find median
I will find the general median, for example, 52134, in order (from small to large) 12345 to get the middle number 3
However, when we meet 1 to 1356 (1 2 3 4 5 I can't list it like this
How to find the median from 1 to 1356


The simple method of median is as follows
(minimum number + maximum number) △ 2
1 to 1357
(1+1357)÷2=679
If you don't understand, you can ask. If it helps, please adopt it. I wish you progress in your study. Thank you



3 triangles plus 2 circles = 78 2 triangles plus 3 circles = 72 what is the triangle? What is the circle?


Let the triangle be x and the circle be y. solve the equation 3x + 2Y = 78 2x + 3Y = 72 to get x = 18 and y = 12



Two circles + three triangles = 78, two circles + five triangles = 98, circle = (), triangle = ()


Type 2-1
2 triangles = 98-78 = 20
Triangle = (10)
Two circles + three triangles = two circles + 30 = 78
Two circles = 78-30 = 48
Circle = (24),



Two circles are equal to a triangle plus a square. A circle plus a square is equal to a triangle. How many squares is a circle plus a triangle


Let circle = x triangle = y square = Z
2x=y+z
x+z=y
The solution is x = 2Z, y = 3Z
X+Y=5Z
A circle plus a triangle is five squares



Three triangles are equal to two squares, three squares are equal to a circle, and the triangle divided by the circle is equal to ()


Nine triangles are six squares
Six squares are equal to two circles
Nine triangles are equal to two circles
A triangle divided into circles is equal to (2 / 9)



Two circles are equal to a triangle plus a square, a circle plus a square is equal to a triangle, what is that circle plus a triangle


Five squares



A triangle plus a circle plus a circle plus a square equals seventy, so how much is the circle


Come on



There is a triangular land with three sides of 120 meters, 150 meters and 80 meters in length. A tree is planted every 10 meters on the border. Each vertex of the triangle must be planted. How many trees are planted?


(80 + 120 + 150) △ 10 = 350 △ 10 = 35 (trees) a: a total of 35 trees are planted on three sides