Assignment: The Rambler’s ProblemCOM1005 Machines and IntelligenceSemester 2: Experiments with AI TechniquesHeidi ChristensenUniversity of SheffieldVersion 1.1This assignment carries 30% of the marks for COM1005DUE DATE: Friday 21st May 2021 at 23:59 (UK Time)In this assignment you’ll experiment ...
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrounded by water.