3 comments (3 comments)1 reaction (1 reaction)0 assignees (0 assignees)C++3,724 forks (3,724 forks)batch import
Hacktoberfestadd codenew algorithm
Repository metrics
- Stars
- 13,462 stars (13,462 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
I will implement a generator for all the partitions of a set using backtracking. Would that be ok?
Contributor guide
- Research direction
- Implement a recursive backtracking algorithm to generate all partitions of a set. Represent the set as a vector of elements. Use a vector of vectors to store the current partition. At each step, choose an element and either place it in an existing subset or create a new subset. Recurse until all elements are placed. Collect all valid partitions.
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Feature
- Prerequisites
- C++