Class SebastianBergmann\Diff\LCS\MemoryEfficientImplementation

InheritanceSebastianBergmann\Diff\LCS\MemoryEfficientImplementation
ImplementsSebastianBergmann\Diff\LCS\LongestCommonSubsequence

Memory-efficient implementation of longest common subsequence calculation.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
calculate() Calculates the longest common subsequence of two arrays. SebastianBergmann\Diff\LCS\MemoryEfficientImplementation

Method Details

calculate() public method

Calculates the longest common subsequence of two arrays.

public array calculate ( array $from, array $to )
$from array
$to array