Convert pseudo code to matlap and this is the code :
lgorithm 3 Iterative Target-Oriented Algorithm (ITOA) Input: S= set of cameras; T = set of targets; P = set of discrete
pans; K= No. of set covers
Output: C =Collection of Set Covers C1 , C2 ....CK
1: 2: 3: 4: 5: 6: 7: 8: 9:
10: 11: 12: 13:
14:
15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25:
SENSORS= S
/*SENSORS keeps track of the list of unused sensors */ k=0
while SENSORS ̸= ∅ do
/* a new set cover Ck will be formed */ k=k+1
Ck =φ
TARGETS= T
/*TARGETS contains the targets that still have to be covered by the current set cover Ck */
while TARGETS ̸= ∅ do
/* more targets have to be covered */
Calculate Fuv for each su ∈ SENSORS, pv ∈ P ; Let a sensor-pan pair (si,pj) covers Φij targets with force F′ij such that:
Fi′j =argmaxvFuv;∀su ∈S;∀pv ∈P;
∀si ∈S;∀pj ∈P;
Ck = Ck ∪{(si,pj)} SENSORS = SENSORS \ {si} TARGETS = TARGETS \ {Φij }
end if end while
C=C∪Ck end while
marker: return the collection of set covers C
1: 2: 3: 4: 5: 6: 7: 8: 9:
10: 11: 12: 13: 14: 15: 16: 17: 18:
19: 20: 21: 22: 23: 24: 25:
26: 27:
28: 29: 30: 31: 32: 33: 34: 35:
SENSORS= S
/*SENSORS keeps track of the list of unused sensors */ k=0
while SENSORS ̸= ∅ do
/* a new set cover Ck will be formed */ k= k + 1
Ck =∅
TARGETS= T
/*TARGETS contains the uncovered targets */ while TARGETS ̸= ∅ do
/* more targets have to be covered */ Find Dmin = minD(t) : t ∈ T
if |Dmin| = 0 then
/*TARGETS contains some uncoverable targets*/ goto marker
else
S′ = ∅
Find the targets having cardinality equals Dmin
and create a set T′ for each t ∈ T ′
for each (si,pj) ∈ Φ−1(t) S′ =S′ ∪{(si,pj)}
Find the most contributing (su,pv) such that: (su,pv)←argmaxsu∈S’,1≤v≤qΦuv∩TARGETS /* selects (su,pv) covering maximum targets */
In case of tie, create a subset S′′ ⊆ S′ with all sensor-pan pairs having same contribution Let (si,pj) ∈ S′′ has the maximum force Fi′j among all sensor-pan pairs in S′′, i.e.:
Fi′j =argmaxvFuv;∀su ∈S;∀pv ∈P;
∀si ∈S;∀pj ∈P; Ck = Ck ∪{(si,pj)}
SENSORS = SENSORS \ {si}
TARGETS = TARGETS \ {Φij } end if
end while
C = C ∪ Ck end while
marker: return the collection of set covers C
i f
Respected Employer
I can create the best quality website that can turn your idea into real.
You will save your time and money when you hire me and will be happy with my result.
I can complete your job perfectly.
Looking forward your reply.
Thanks.
Respected Sir,
I would love to be a part of your project. I can comfortably do your work. It takes me few days to complete of your work. I am interested in to your latest job posted. I get the opportunity to accept your project.
I understand the importance of your project as this leads to a higher accuracy of your project .
NOTE : The Above Quote & Timeframe is Tentative may change Subject to Real Work Assessed.
Scope of work: You want Convert pseudo code to matlap
Skills:-Matlab and Mathematica, Software Architecture
Feel free to reach out if you have any questions.
Looking forward to working with you.
Thanks you for consideration
Qutub s
Hi Customer,
I can help you about writing MATLAB code based on pseudo code.
I had solid background about Mathematics and have experience about coding based on pseudo code.
Also, I the quick learner and strong about research skill.
I hope you will choose me and I hope we will co-operate together.