IClosestPair

Interface for closest pair algorithms.

This interface defines the contract for algorithms that find the closest pair of points in a collection of points in 2D space.

Inheritors

Functions

Link copied to clipboard
open override fun getGroup(): String

Returns the group to which the algorithm belongs. This is used for categorization and organization of algorithms.

Link copied to clipboard
open fun getId(): String

Returns a unique identifier for the algorithm, combining its group and name. The identifier is formatted as "group:name", with both group and name in lowercase and spaces replaced by hyphens.

Link copied to clipboard
abstract fun getName(): String

Returns the name of the algorithm.

Link copied to clipboard
abstract fun run(): Result<V>

Runs the algorithm and returns the output.