# @andrey_tsuzuki/combining-tree-interrupting

> ``` O algoritmo retorna combinações entre elementos com bastante otimização e permite o input de restrições. As restrições são realizadas através de números primos, permitindo-se, assim, filtrar as combinações indesejadas. Para melhor otmização as arvores

Latest version **1.0.0** (published 2022-09-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install @andrey_tsuzuki/combining-tree-interrupting
pnpm add @andrey_tsuzuki/combining-tree-interrupting
yarn add @andrey_tsuzuki/combining-tree-interrupting
bun add @andrey_tsuzuki/combining-tree-interrupting
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-09-30 |
| First published | 2022-09-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | andrey_tsuzuki |

## Links

- npm: https://www.npmjs.com/package/@andrey_tsuzuki/combining-tree-interrupting
- Repository: https://github.com/Rosnaldo/combining-tree-interrupting
- Homepage: https://github.com/Rosnaldo/combining-tree-interrupting#readme
- Issues: https://github.com/Rosnaldo/combining-tree-interrupting/issues
- npm.io page: https://npm.io/package/@andrey_tsuzuki/combining-tree-interrupting

## Recent versions

- 1.0.0 (latest) — 2022-09-30

## README

# combining-tree-interrupting

```
O algoritmo retorna combinações entre elementos com bastante otimização e permite o input de restrições.
As restrições são realizadas através de números primos, permitindo-se, assim, filtrar as combinações indesejadas.
Para melhor otmização as arvores de combinações são interropidas quando rejetadas pelas restrições dando bastanto velocidade.
```

## Parametros
```
main(elements, restrictions, group_size, n_results)

elements: ['pedra', 'papel', 'tesoura', 'lagarto', 'spock']

restrictions: {
  mutualExclusive: [['pedra', 'papel']],
  invalidGroups: [['papel', 'lagarto'], ['spock', 'papel']],
};

n_results: 2

```

#### elements
```
Um array de elementos a serem combinados
```

#### restrictions.mutualExclusive
```
Restringe elementos mutualmente exclusivos.
No caso qualquer combinação em que 'papel' e 'pedra' apareçam juntos serão filtrados
```

#### restrictions.invalidGroups
```
Restringe as cominações exatas inputadas.
No caso as cominações 'papel' e 'lagarto'; e 'spock' e 'papel' serão filtrados
```

#### n_results
```
O numero de combinações a serem retornados
```

---
_Source: https://npm.io/package/@andrey_tsuzuki/combining-tree-interrupting · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
