https://github.com/suhatanriverdi/create-random-island-matrix
C++ Code about Matrices and Recursive Function for Students
https://github.com/suhatanriverdi/create-random-island-matrix
cpp
Last synced: over 1 year ago
JSON representation
C++ Code about Matrices and Recursive Function for Students
- Host: GitHub
- URL: https://github.com/suhatanriverdi/create-random-island-matrix
- Owner: suhatanriverdi
- License: mit
- Created: 2018-02-22T20:29:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T20:56:07.000Z (over 8 years ago)
- Last Synced: 2024-11-20T14:51:03.624Z (over 1 year ago)
- Topics: cpp
- Language: C++
- Size: 3.91 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Create-Random-Island-Matrix
The purpose of this program is to create islands randomly with 1s and 0s and find number of islands in a boolean 2D matrix. It creates 5x5 Matrix and uses Recursive
Function, so you can take this code as an example to learn recursive function. A group of connected 1s forms an island. For example, the below matrix contains 5 islands;
sample matrix[5][5] =
{{1, 1, 0, 0, 1},
{1, 1, 0, 0, 1},
{1, 0, 0, 1, 1},
{0, 0, 0, 0, 0},
{1, 0, 1, 0, 1}}
Number Of Islands : 5
## Sample Usage
Random Matrix Island Creater was written by using Dev C++ (version 5.11). To start using, after downloading files to any directory,
Just open the file named "Island.cpp" and Compile it with Dev C++ (You can use F11 to compile and run).

## License
Random Matrix Island Creater is licensed under the MIT license. See LICENSE for more information.
## Disclaimer
This project was prepared and shared for education purphoses only. You can change the "Island.cpp" file according to your preferences.
You can also use or edit any file in this repo as you wish :)
## About
Süha TANRIVERDİ Çankaya University, Computer Engineering
# *" No Pain, No Gain... "*