How to Handle Matrix Operations and Pair Finding in C?

  • Thread starter Thread starter sulev8
  • Start date Start date
  • Tags Tags
    Assignment
Click For Summary

Discussion Overview

The discussion revolves around the task of writing a C program to handle matrix operations, specifically focusing on creating a rectangular integer matrix, outputting its elements by columns, and finding pairs of elements with equal values along with their indices. The scope includes programming techniques, algorithm design, and problem-solving strategies in a homework context.

Discussion Character

  • Homework-related
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant requests assistance in writing a C program for matrix operations and pair finding.
  • Another participant emphasizes the importance of learning and understanding the material rather than just receiving answers, suggesting that hints would be more beneficial.
  • There is a suggestion to explore the concept of arrays and two-dimensional arrays as foundational knowledge for the task.
  • A further suggestion is made to outline the steps needed to approach the problem and to visualize the storage of data as a method of understanding.

Areas of Agreement / Disagreement

Participants generally agree on the importance of learning and understanding the programming concepts involved, but there is no consensus on the specific approach to take for solving the problem.

Contextual Notes

Participants have not yet provided detailed solutions or specific programming techniques, and the discussion remains focused on hints and guidance rather than definitive answers.

sulev8
Messages
5
Reaction score
0
Enter integer rectangle matrix A(0..n,0..m). Give out entered matrix by columns. Find all element pairs with equal value and their index and give them out.


I have to write c programm for this , can anyone make the body of this exercise and share some instructions how i should approach to this kind of exercise.
Many thanks in advance.
 
Physics news on Phys.org
Welcome to PF sulev. Note that on PF we don't give answers, just hints. For me it is easy to produce such a program but if I just give it to you then you probably won't be able to solve a similar assignment yourself next time.

Have you learned about arrays? Also, two dimensional arrays (http://www.eskimo.com/~scs/cclass/int/sx9.html)?
 
CompuChip said:
Welcome to PF sulev. Note that on PF we don't give answers, just hints. For me it is easy to produce such a program but if I just give it to you then you probably won't be able to solve a similar assignment yourself next time.

Have you learned about arrays? Also, two dimensional arrays (http://www.eskimo.com/~scs/cclass/int/sx9.html)?

maybe you can give me some more hints , I am still kinda in trouble with it
 
Write down step by step what you need to do.
Draw the storage as boxes on pieces of paper.
Think

Post back here
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
20K
  • · Replies 1 ·
Replies
1
Views
4K