Algorithm for the interaction of structures in providing assistance to victims of violence