This repository provides tools to generate and visualize Costas arrays, mathematical structures with applications in radar, sonar, and communications.
- Welch Construction for fast generation when applicable ((N+1) is prime).
- Backtracking Search as a fallback for general (N).
- Visualization of arrays using
matplotlib.
- Clone the repository:
git clone https://github.com/splch/costas-array-generation.git cd costas-array-generation - Install dependencies:
pip install -r requirements.txt
from costas import generate_costas_array, visualize_costas_array
N = 8
result = generate_costas_array(N)
print("Costas permutation:", result)
visualize_costas_array(result)Run examples in the provided main.ipynb.
This project is open-sourced under the MIT License.
