Metadata-Version: 2.1
Name: kombin_algo_pranavpatel_ca
Version: 1.0.0
Summary: Indexing combinations from two finite sets.
Project-URL: Homepage, https://github.com/octopranav/KombiN
Project-URL: Bug Tracker, https://github.com/octopranav/KombiN/issues
Author-email: Pranavkumar Patel <pranav003@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# KombiN - Python 3 Library

This is the python implementation of KombiN, which is an algorithm to get index for combination pair and to get combination pair from index, where all possible combination pairs from two finite sets are sorted by their weight in ascending order.

## Installation

Available on [pypi](https://pypi.org/project/kombin-algo-pranavpatel-ca/)

```diff
pip install kombin-algo-pranavpatel-ca
```

## Usage

where set 'A' has 100 elements and set 'B' has 80 elements and both sets has zerobased indexing.

```py
from kombin import Table

# Initialize object of Table class
myObj = Table(100, 80, true)

# Get Index value for combination pair(ai: 46, bi: 72)
index = myObj.GetIndexOfElements(46, 72)

# Get combination pair from index value
ai, bi = myObj.GetElementsAtIndex(index);

```
