The Local/Global Alignment (Zemla, 2003), or LGA, is a popular method for the comparison of protein structures. One of the two components of LGA requires us to compute the longest common contiguous segments between two protein structures. That is, given two structures A = (a 1, ..., a n ) and B = (b 1, ..., b n ) where a k , b k ∈ ℝ 3, we are to find, among all the segments f = (a i ,...,a j ) and g = (b i ,...,b j ) that fulfill a certain criterion regarding their similarity, those of the maximum length. We consider the following criteria: (1) the root mean square deviation (RMSD) between f and g is to be within a given t ∈ ℝ; (2) f and g can be superposed such that for each k, i ≤ k ≤ j, ||a k - b k || ≤ t for a given t ∈ . We give an algorithm of time complexity when the first requirement applies, where is the maximum length of the segments fulfilling the criterion. We show an FPTAS which, for any ε∈ ℝ, finds a segment of length at least l, but of RMSD up to (1 + ε)t, in O(nlogn + n/ε) time. We propose an FPTAS which for any given ε∈ ℝ, finds all the segments f and g of the maximum length which can be superposed such that for each k, i ≤ k ≤ j, ||a k - b k || ≤ (1 + ε) t, thus fulfilling the second requirement approximately. The algorithm has a time complexity of O(nlog 2 n/ε 5) when consecutive points in A are separated by the same distance (which is the case with protein structures).