Documentation

MemoryEfficientLongestCommonSubsequenceCalculator
in package
implements LongestCommonSubsequenceCalculator

FinalYes

Table of Contents

Interfaces

LongestCommonSubsequenceCalculator

Methods

calculate()  : array<string|int, mixed>
Calculates the longest common subsequence of two arrays.
length()  : array<string|int, mixed>

Methods

calculate()

Calculates the longest common subsequence of two arrays.

public calculate(array<string|int, mixed> $from, array<string|int, mixed> $to) : array<string|int, mixed>
Parameters
$from : array<string|int, mixed>
$to : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

length()

private length(array<string|int, mixed> $from, array<string|int, mixed> $to) : array<string|int, mixed>
Parameters
$from : array<string|int, mixed>
$to : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results