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 8122695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:54:47+00:00 2026-06-06T05:54:47+00:00

I am having big troubles representing a sparse matrix in C with a multi-list,

  • 0

I am having big troubles representing a sparse matrix in C with a multi-list, as my university teacher asked.

Image

For what I understood there are several kinds of lists:

  • The main one contains a pointer to next row and column
  • One for column and rows
  • One of elements.

Any help on how to implement this would be greatly appreciated.

  • 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-06T05:54:49+00:00Added an answer on June 6, 2026 at 5:54 am

    ( I will explain how can you represent the picture if that is what are you asking )
    From your picture I understand that you have 3 types of nodes and some rules:

    • a) one for the number of rows and columns ( with 2 pointer )
    • b) one for the size of the matrix ( 2 pointers and the witdh and
      height)
    • c) one with the value of an element that is not zero ( with 2
      pointers, the colum value and the row value of the element and the
      element)

    Rules:

    1. The b) element has a pointer to the first row element and first
      column element
    2. Each row element has a pointer to the next row element ( the last has a pointer
      to the b) element )
    3. Each colum element has a pointer to the next colum element and the last
      has a pointer to the b) element
    4. each row has the second pointer pointing the first c) element on their row
    5. each colum has the second pointer pointing to the first c) element on their
      colum
    6. each element points to: the next c) element on their row and the next c) element on their column ( if there is no next element on the row just point to the row element, and if there is no next element on the column just point to the column element)

    For each rule if you can’t apply you just skip it and leave that pointer null
    Hope it helped.

    You can create some custom linked lists and just apply the rules
    Here you have a simple tutorial

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

Sidebar

Related Questions

There is a big design flaw here, but I'm having trouble solving it: The
I'm having big troubles with drag & drop. I've created a new Qt Designer
I'm having trouble understanding big code libraries in Pharo and Squeak, is there is
I'm having big troubles with a more complicated (or my mind makes it so)
Im having a big headcache with a header design: Here the demo: http://jsfiddle.net/uGECm/ The
I'm having a big problem with my Lacie NAS 1TB drive, which doesn't seem
I am having a big issue trying to delete from an UITableView. Just for
In MVC app, I am having this big object that is used in classic
I am having a pretty big xml file (17 MB) on a webserver, which
I'm having a very big struct in an existing program. This struct includes a

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.