Velocity Reviews > C++ > algorithm help

# algorithm help

sj
Guest
Posts: n/a

 10-28-2004
Hi;

I am writing a c++ code to transform matrix, (a) to (b) using
divide-and-conquer method in four recurrence. I am having difficulty
to merge four submatrices to get the answer. could someone give me a
source code or explain to me how to do it. I am sorry if this is not a

Thanks
ks

(a)

| 1 1 2 2 |
| 1 1 2 2 |
| 3 3 3 3 | transform to
| 3 3 3 3 |

(b)

| 1 1 2 2 |
| 1 1 0 2 |
| 3 0 0 3 |
| 3 3 3 3 |

Victor Bazarov
Guest
Posts: n/a

 10-28-2004
sj wrote:
> I am writing a c++ code to transform matrix, (a) to (b) using
> divide-and-conquer method in four recurrence. I am having difficulty
> to merge four submatrices to get the answer. could someone give me a
> source code or explain to me how to do it. I am sorry if this is not a

We can't give you the source code. But we can help you correct errors
in your own code. You are saying you have difficulty merging those
submatrices; post your code, we can definitely look at it and recommend
something.

> [...]

V

JKop
Guest
Posts: n/a

 10-29-2004
sj posted:

> Hi;
>
> I am writing a c++ code to transform matrix, (a) to (b) using
> divide-and-conquer method in four recurrence. I am having difficulty
> to merge four submatrices to get the answer. could someone give me a
> source code or explain to me how to do it. I am sorry if this is not a
>
> Thanks
> ks
>
> (a)
>
> | 1 1 2 2 |
> | 1 1 2 2 |
> | 3 3 3 3 | transform to 3 3 3 3 |
>
> (b)
>
> | 1 1 2 2 |
> | 1 1 0 2 |
> | 3 0 0 3 |
> | 3 3 3 3 |

You're neither offering:

A) Money

B) The opportunity to teach or mentor

If you'd like to opt for option B, I'd suggest posting an attempt at it.

-JKop

sj
Guest
Posts: n/a

 10-30-2004
JKop <(E-Mail Removed)> wrote in message news:<%kngd.40345\$(E-Mail Removed)>...
> sj posted:
>
> > Hi;
> >
> > I am writing a c++ code to transform matrix, (a) to (b) using
> > divide-and-conquer method in four recurrence. I am having difficulty
> > to merge four submatrices to get the answer. could someone give me a
> > source code or explain to me how to do it. I am sorry if this is not a
> > right place to ask.
> >
> > Thanks
> > ks
> >
> > (a)
> >
> > | 1 1 2 2 |
> > | 1 1 2 2 |
> > | 3 3 3 3 | transform to 3 3 3 3 |
> >
> > (b)
> >
> > | 1 1 2 2 |
> > | 1 1 0 2 |
> > | 3 0 0 3 |
> > | 3 3 3 3 |

>
>
> You're neither offering:
>
> A) Money
>
> B) The opportunity to teach or mentor
>
>
> If you'd like to opt for option B, I'd suggest posting an attempt at it.
>
>
> -

No money to offer for this. Money is not everything. I am curious to
learn this. Many thanks go to the ones who teach me this.

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are Off Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post senthil VHDL 3 11-25-2011 11:58 AM Bapaiah Katepalli VHDL 1 06-23-2006 04:50 PM Ahmed Moustafa Java 0 11-15-2003 06:35 AM Derek Java 12 07-22-2003 04:42 PM Jim Java 5 07-19-2003 01:11 PM