sentences:  For this particular application, there is no difference which strategy to use.The simplest kind of a last in first out queue implemented as a singly linked list will result in a depth first search strategy.It is assumed that the input image is a binary image, with pixels being either background or foreground and that the connected components in the foreground pixels are desired.