Numerical algorithms for detecting embedded components. (September 2017)