# Solving a Prize Collecting Steiner Tree Problem in R

I would like someone to show me how to solve a Prize Collecting Steiner Tree Problem in R (implement the algorithm in R). I understand the basics of how it works, but I can't seem to code it out. More information on the data and minor requirements will be provided. I want it to take in a graph of coordinates with the prizes and costs and it should output a subgraph based on the optimal way to connect the coordinates.

I need a step by step guide on how to implement an algorithm that solves a Prize Collecting Steiner Tree problem in R. It should be an exact algorithm NOT an approximation. The algorithm should take in the name of the location and its prize. I have provided a csv file that contains the edge cost for the connection between two locations (nodes) (edge.csv) and the prize for each location (score.csv). I want the desired output to possibly be a data frame similar to desired_output.csv which shows the optimal connection path so I can match it with the coordinates and draw it on a map in the future. I am opened to any suggestions. Although I would like this to be done in R but Python is fine as well.

Can you help me do this? I can elaborate if you're confused somewhere. Thank you.

Reference material for an exact PCST problem:

Om arbejdsgiveren:
( 0 bedømmelser ) Australia

Projekt ID: #14864574

## 10 freelancere byder i gennemsnit \$48 på dette job

\$80 AUD på 1 dag
(237 bedømmelser)
6.9
schoudhary1553

Greetings sir, i am an expert freelancer for this job and your 100% satisfaction is assured if you allow me to serve. I can do this task as per your requirement Relevant Skills and Experience I have the 5 years of ex Flere

\$150 AUD in 2 dage
(19 bedømmelser)
5.5
KingOfIronFis

Hi. I'm a telecom engineer and I hold also a master of science in telecommunication from centrale supelec paris. I can do this project using matlab. Relevant Skills and Experience matlab, algorithms Proposed Mileston Flere

\$20 AUD på 1 dag
(6 bedømmelser)
3.2
\$25 AUD på 1 dag
(1 bedømmelse)
2.6
fastlabindia

One of the tasks that can be done very perfectly by [login to view URL] are highly experienced Post Graduate Engineers, Doctors, IT, ITES, Software, Infrastructure Professionals, Web Designers and IT Architects. Relevant Skills and Flere

\$25 AUD på 1 dag
(3 bedømmelser)
3.2
mathDev00

Dear sir. I am very interested to your project. I have a good skill and experience in R programming. I can finish this project in perfect. Please contact me. Thanks. Stay tuned, I'm still working on this proposal.

\$30 AUD på 1 dag
(0 bedømmelser)
0.0

A proposal has not yet been provided

\$30 AUD på 1 dag
(1 bedømmelse)
0.0
spiritofstats

am intereted to the job you posted , i can solve your problem Relevant Skills and Experience phd in statistics data analysis statistical software programmer Proposed Milestones \$25 AUD - all

\$25 AUD på 1 dag
(0 bedømmelser)
0.0
mryabko

hi,I have one year experience with R for data scrapping. Also have implemented many algorithms in matlab and python

\$25 AUD in 5 dage
(1 bedømmelse)
0.0
\$65 AUD på 1 dag
(0 bedømmelser)
0.0