CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 18

Threaded View

  1. #1
    Join Date
    Jul 2021
    Posts
    9

    Find cartesians that fills zero-one matrix

    Hi All! I am new here.
    I am wondering what is the name for the following algorithm I need to code. If I know the name I could find the algorithm.

    1st example
    Suppose I have a matrix
    Code:
     123
    Aoo 
    Boo
    C oo
    D  o
    E oo
    Having it as an input I need to create an output like this:
    ABx12, CEx23, Dx3 (x means cartesian product)

    2nd example
    Code:
     12345
    A oo o
    B o  o
    Coo
    Doo oo
    Eo  oo
    F  ooo
    should give me an output like
    ABx25, CDx12, DEFx45, AFx3, Ex1

    May you help me, please?

    Thanks in advance,
    Jacek
    Last edited by JackK; July 14th, 2021 at 07:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured