C++ programming

This is a discussion on C++ programming within the C++ Programming forums, part of the General Programming Boards category; Given a RxC Matrix, A, i.e. R rows and C columns we define a Saddle-Point as Saddle_Pt (A(i,j)) = A(i,j) ...

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    2

    Smile C++ programming

    Given a RxC Matrix, A, i.e. R rows and C columns we define a Saddle-Point as
    Saddle_Pt (A(i,j)) = A(i,j) is the minimum of Row i and the maximum of Col j.
    e.g.
    1 2 3
    4 5 6
    7 8 9
    -- 7 is Saddle_Pt. at position (3,1)
    Write a program in C++ to check and print for saddle points in a matrix.

  2. #2
    Registered User
    Join Date
    Sep 2010
    Posts
    2
    I tried lot but still i am not able to do exact program.Please help me.

  3. #3
    Registered User
    Join Date
    Oct 2010
    Posts
    1
    Quote Originally Posted by cqueries View Post
    I tried lot but still i am not able to do exact program.Please help me.
    Do you have an example of what you've done so far?

  4. #4
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    saddle point

    Quote Originally Posted by cqueries View Post
    Given a RxC Matrix, A, i.e. R rows and C columns we define a Saddle-Point as
    Saddle_Pt (A(i,j)) = A(i,j) is the minimum of Row i and the maximum of Col j.
    e.g.
    1 2 3
    4 5 6
    7 8 9
    -- 7 is Saddle_Pt. at position (3,1)
    Write a program in C++ to check and print for saddle points in a matrix.
    please send

  5. #5
    Registered User
    Join Date
    Oct 2009
    Location
    Portugal
    Posts
    25
    Remember the first position is 0,not 1

    position(3,1) is out of range
    7 is in posiiton(2,0)
    Last edited by joseCarlos; 11-11-2010 at 12:42 PM.

  6. #6
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    682
    Quote Originally Posted by himani_89 View Post
    please send
    Two newly registered users, begging for homework.
    Wrong forum guys, unfortunately, I am your real professor who assigned you this exercise, and you get D! Bah
    Ha ha ha

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21