Give a randomized incremental algorithm which given n circles in the plane, reports the point with greatest y coordinate that lies inside all of the circles.
Here, "the point with greatest y coordinate that lies inside all of the circles" means the point with greatest y coordinate among intersection points of all circles

Please give the pseudo-code! Thank you
Algo
1. take two circles and find their point of intersection if any.
to find point of intersection do the following

First calculate the distance d between the center of the circles. d = ||P1 - P0||.
Considering the two triangles P0P2P3 and P1P2P3 we can write
a2 + h2 = r02 and b2 + h2 = r12
Using d = a + b we can solve for a,
a = (r02 - r12 + d2 ) / (2 d)
It can be readily shown that this reduces to r0 when the two circles touch at one point, ie: d = r0 + r1
Solve for h by substituting a into the first equation, h2 = r02 - a2
So
P2 = P0 + a ( P1 - P0 ) / d
And finally, P3 = (x3,y3) in terms of P0 = (x0,y0), P1 = (x1,y1) and P2 = (x2,y2), is
x3 = x2 +- h ( y1 - y0 ) / d
y3 = y2 -+ h ( x1 - x0 ) / d
2. after finding P3 put the point in equation of other n-2 circles to see if it lie inside, outside or on the circle
if valueevaluates to <0 inside circle
=0 on circle
>0 outside circle
3. for points inside or on (<=0) all n-2 circle store the y coordinate
4 repeat step 1,2 and 3 for all pairs of circle
5. find max of all y coordinate stored in step 3
Give a randomized incremental algorithm which given n circles in the plane, reports the point with...
Let L be a set of n lines in the plane. Give an O(nlogn) time
algorithm to compute an axis-parallel rectangle that contains all
the intersection points of those n lines in the plane.
10. Maxima search a. A point (xi, yi) in the Cartesian plane is said to be dominated by point (xj, уј ) İfxī x; and yi y, with at least one of the two inequalities being strict. Given a set of n points, one of them is said to be a maximum of the set if it is not dominated by any other point in the set. For example, in the figure below, all the maximum points of the set...
Subject: Algorithm
need this urgent please thank you.
4. Give pseudocode for an algorithm that will solve the following problem. Given an array A[1..n) that contains every number between 1 and n +1 in order, except that one of the numbers is missing. Find the miss sorted ing mber. Your algorithm should run in time (log n). (Hint: Modify Binary search). A pseudocode means an algorithm with if statements and loops, etc. Don't just write a paragraph. Also, if your...
Write pseudocode to solve the following problem: You are given an array A[1...n] whose each element is a point of the plane (x,y). You need to sort the array so that points with lower x-coordinates come earlier, but among points with the same x-coordinate, the ones with larger y-coordinate come earlier. So, for example, if the array contains: (1,2), (1,4), (7,10), (11,3), (14,1), (7,2) The output, in this case, should be: (1,4), (1,2), (7,10), (7,2), (11,3), (14,1) Analyze the running...
Given a plane graph represented as an ordered (clockwise) adjacency lists, as presented in class, give a detailed efficient algorithm that lists all regions of the plane embedding. Here each region is a sequence of vertices, ordered as one traverses the edges of its boundary. See the following example. Do analysis on the running-time of your algorithm. Note that all planar graphs have O(n) edges.
This question is given from 'Numerical Techniques and
Statistical Analysis' paper which based on using Matlab
program.
However, I don't know how can I solve this tough question.
Could anyone please help me?
Thank you so much.
6. Even today, if you are attempting to sail to Fiji, you need to pass a test by Maritime New Zealand to show that you can navigate without using a GPS! One of the things you need to do is find your (,...
1 1 point Consider the following algorithm for factoring an integer N provided as input (in binary): For i = 2 to [VN.17 i divides N, then output (i, N/). Which of the following statements is true? This algorithm is correct, but it runs in exponential time. This algorithm is not correct, because it will sometimes fail to find a factorization of Neven if N is composite This algorithm runs in sub-linear time, and always factors N it Nis composite...
Please write neat and explain thank you.
This problem concerns embedding the complex plane C with elements zx iy in the Riemann sphere defined in 3-dimensional space R' with coordinates (X,Y,Z) as the set of points satisfying X2 + Y2+22 = 1, which is known as the unit sphere and denoted by S2,or in the context of stereographic projection of the complex plane into the sphere, often referred to as the extended complex plane and denoted by C. We identify...
Python. Just work in the def sierpinski. No output needed. Will
give thumbs up for any attempt beginning this code.
Your task is to implement this algorithm in Python, returning a random collection of inum-100, 000 points. You should then plot the points to see the structure. Please complete the following function: def sierpinski (po, v, f, inum) The four arguments are ·po the initial point. You may assume this is the origin, i.e., po = [0, 0] . v:...
my question is on a java program. i have added all instructions for this homeowrk assignment. from how the input is entered and what the output should read. im seeing if i can get a psuedo code setup for how the algorithm should be setup. Build an Intersection Check program. User inputs two points as x-y coordinates in twodimension space. Two points represent two end points of a line segment. Then, user can input second two points for the second...