Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9269699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:11:22+00:00 2026-06-18T15:11:22+00:00

I am currently writing some code to deal with Go boards. A Go board

  • 0

I am currently writing some code to deal with Go boards. A Go board is represented as an array of colors. The array has size × size entries and represents a two-dimensional square board.

enum color {
    EMPTY,
    BLACK,
    WHITE,
};

struct go_board {
    unsigned int size;
    enum color intersections[];
};

When enum color player moves, the following procedure applies: (See rules)

  1. […]
  2. a point P, not colored C, is said to reach C, if there is a path of (vertically or horizontally) adjacent points of P’s color from P to a point of color C.
  3. Clearing a color is the process of emptying all points of that color that don’t reach empty.
  4. […]
  5. A move consists of […] clearing the opponent color, and then clearing one’s own color.

I am looking for a fast (in terms of noth computational complexity and actual speed) algorithm to clear a board. Can you help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:11:24+00:00Added an answer on June 18, 2026 at 3:11 pm

    Use image processing’s flood-filling algorithms. First, seed with the empty points and fill all positions that are white or empty; all non-filled positions with white stones will be dead. Repeat with black.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently writing some code for UnconstrainedMelody which has generic methods to do with
I am writing some c# code that is currently supposed to run as fast
I'm currently writing a piece of code that does some searches which returns IDisposable
I am currently writing some framework code that provides a blueprint for services within
i'm currently writing on some piece of code in android 2.1 that is supposed
I'm currently writing a code in VBA to retrieve prices for some financial models.
I'm currently writing some code that wrappers user-written JavaScript functions, and have come across
I'm currently writing some MATLAB code to interact with my company's internal reports database.
I am currently writing some code that can access a separate workbook through an
I'm currently writing some code where I have something along the lines of: double

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.