Skip to content

Instantly share code, notes, and snippets.

@wolfram77
wolfram77 / menu-indian-corner-restaurant-gotland-sweden.md
Created November 6, 2024 18:13
Indian Corner Restaurant Menu @ Gotland, Sweden : MENU

See below.

@wolfram77
wolfram77 / code-misra-gries-algorithm-using-vector-instructions.md
Created October 27, 2024 16:51
Misra-Gries algorithm for finding heavy hitters in a list of numbers, using vector instructions : CODE

I was trying out the Misra-Gries algorithm for finding heavy hitters in a list of numbers, using vector instructions. But let me fill in some context first. I am trying to minimize the memory needed by Louvain/Leiden algorithms for community detection, and hopefully a bit of performance too. Currently the algorithms use a full-size per-thread hashtables, with each thread using |V| space for storing the associated weights for the hashtable. However, we could instead store a small hashtable, using the Misra-Gries algorithm, in the cache - obviously this might affect the performance (in terms of quality of the returned communities).

It was cool to go through step-by-step and be able to minimize the number of lines of generated machine code (with minimal conditional jumps). When you understand the vector instructions, you can write them in a higher-level logic without resorting to writing the instructions yourself, as these can be quite complicated. We let the compiler do its thing, but guide it with a short f

@wolfram77
wolfram77 / notes-vertex-reordering-for-real-world-graphs-and-applications-an-empirical-study-2020.md
Last active October 25, 2024 21:48
Vertex Reordering for Real-World Graphs and Applications: An Empirical Evaluation : NOTES
@wolfram77
wolfram77 / notes-joint-partitioning-and-sampling-algorithm-for-scaling-graph-neural-network.md
Last active October 25, 2024 21:46
Joint Partitioning and Sampling Algorithm for Scaling Graph Neural Network : NOTES
@wolfram77
wolfram77 / handwritten-partitioning-with-community-detection-idea.md
Created October 25, 2024 21:42
Partitioning with community detection idea : HANDWRITTEN NOTES

See below.

@wolfram77
wolfram77 / drawing-weather-engineering-architecture.md
Created July 31, 2024 18:19
Weather engineering architecture : DRAWING

Weather engineering architecture; Sahu (2024)

@wolfram77
wolfram77 / notes-fast-and-efficient-end-to-end-graph-processing-with-shared-memory-accelerators.md
Last active July 31, 2024 18:12
Fast and Efficient End-to-End Graph Processing with Shared Memory Accelerators : NOTES

Fast and Efficient End-to-End Graph Processing with Shared Memory Accelerators; Mughrabi (2021)

Graph algorithms often require fine-grained, random access across substantially large data structures. Previous work on FPGA-based acceleration has required significant preprocessing and restructuring to transform the memory access patterns into a streaming format that is more friendly to off-chip hardware. However, the emergence of cache-coherent shared memory interfaces, such as Coherent Accelerator Processor Interface (CAPI), allows designers to more easily work with the natural in-memory organization of the data. This thesis introduces a vertex-centric shared-memory accelerator (AccelGraph) for graph algorithms optimized for high performance while effectively using coherent caching on the Field Programmable Gate Arrays (FPGA) hardware. The proposed design achieves speedups by selectively caching graph data for the accelerator while considering locality and reuse, compared to using the shared address space

@wolfram77
wolfram77 / notes-dothash-estimating-set-similarity-metrics-for-link-prediction-and-document-deduplication.md
Last active July 31, 2024 18:09
DotHash: Estimating Set Similarity Metrics for Link Prediction and Document Deduplication : NOTES
@wolfram77
wolfram77 / notes-graph-theory-with-applications.md
Created July 31, 2024 18:06
Graph theory with applications : NOTES

Graph theory with applications; Bondy and Murty (1976)

@wolfram77
wolfram77 / notes-graph-theoretic-problems-and-their-new-applications.md
Last active July 31, 2024 18:04
Graph-Theoretic Problems and Their New Applications : NOTES

Graph-Theoretic Problems and Their New Applications; Werner (2020)

Graph theory is an important area of Applied Mathematics with a broad spectrum of applications in many fields. In the Call for Papers for this issue, I asked for submissions presenting new and inoovative approaches for traditional graph-theoretic problems as well as for new applications of graph theory in emerging fields, such as network security, computer science and data analysis, bioinformatics, operations research, engineering and manufacturing, physics and chemistry, linguistics, or social sciences.

In response to the Call for Papers, we had an enormous resonance, and altogether 151 submissions have been received among which finally 20 papers have been accepted for this special issue, all of which are of high quality, reflecting the great interest in the area of Graph Theory. This corresponds to an acceptance rate of 13.2%. The authors of these accepted publications come from 13 different countries: USA, China, Pakistan, India, Ira