Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS Bot
cake
MB to Hacker NewsEnglish · 4 hours ago

Adjacency Matrix and std:mdspan, C++23

www.cppstories.com

external-link
message-square
0
fedilink
1
external-link

Adjacency Matrix and std:mdspan, C++23

www.cppstories.com

RSS Bot
cake
MB to Hacker NewsEnglish · 4 hours ago
message-square
0
fedilink
Adjacency Matrix and std::mdspan, C++23
www.cppstories.com
external-link
In graph theory, an adjacency matrix is a square matrix used to represent a finite (and usually dense) graph. The elements of the matrix indicate whether pairs of vertices are adjacent or not, and in weighted graphs, they store the edge weights. In many beginner-level tutorials, adjacency matrices are implemented using vector of vectors (nested dynamic arrays), but this approach has inefficiencies due to multiple memory allocations.

Comments

alert-triangle
You must log in or register to comment.

Hacker News

hackernews

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !hackernews@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 290 users / day
  • 1.47K users / week
  • 3.39K users / month
  • 9.56K users / 6 months
  • 2 local subscribers
  • 2.57K subscribers
  • 30.8K Posts
  • 12.6K Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
    cake
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org