Fading Coder

One Final Commit for the Last Sprint

Fundamental Data Structures: Stacks and Queues in C

A stack operates on a Last-In, First-Out (LIFO) principle. It is a linear structure where insertion and deletino occur exclusively at one end, known as the top. The opposite end is the base. Adding an element is termed pushing, while removing one is popping. Sequential Stack Implementation Using a f...

Setting Up Oracle 19c RAC with ASM on CentOS 7.4

Prerequisites 1. Environment Planning Before starting the installation, define the hardware and software specifications for the Oracle Real Application Clusters (RAC) environment. Component Specification Operating System Two CentOS 7.4 virtual machines Disk Space 50 GB per node Memory 4 GB per node...

Constructing Tree Structures via Recursion in C#

Processing hierarchical datasets frequently necessitates transforming a flat collection into a nested tree format. In C#, recursion provides an efficient mechanism to traverse parent-child relationships defined by identifiers. The following implementation demonstrates how to retrieve complete sub-st...

Greedy Algorithm Problem Solutions

Fuel Station Route OptimizationProblem AnalysisThe challenge involves navigating from Hangzhou to a destination with an initially empty fuel tank. Given information about multiple gas stations, we need to determine if the destination is reachable and calculate the minimum cost if possible. If unreac...

Computing Squared Euclidean Distances Between Point Sets in PointNet++

Computing Pairwise Squared Euclidean Distances def square_distance(src, dst): """ Compute squared Euclidean distances between each pair of points from two sets. The formula used is: ||a - b||^2 = ||a||^2 + ||b||^2 - 2 * a^T * b Input: src: source points, [B, N, C] dst: target points,...

Surviving Process Death with Android ViewModel and SavedStateHandle

When Android kills an application in the backgronud, the system may later restore it exactly where the user left off. To keep UI state across this recreation you can combine ViewModel with SavedStateHandle. The handle acts like a tiny key-value bundle that survives both configuration changes and pro...

Real-Time System Monitoring with Netdata on CentOS

For system administrators, having visibility into system resource utilization is crucial. When you need to monitor the real-time performance of a Linux system, applications, or SNMP devices, the netdata tool is an excellent choice. Its web interface is highly responsive and does not require any plug...

Generating FSDB Waveforms with VCS, IES, and Questa for Verdi Debugging

The Verdi debug platform consumes Fast Signal Database (FSDB) files to provide full-featured waveform analysis, source browsing, schematic views, and FSM bubble diagrams. These FSDB files can be produced by the major simulation engines. Below are the integration recipes for Synopsys VCS, Cadence IES...

Panasonic PLC Modbus RTU Communication via NModbus4 in C#

Hardware Wiring & PLC Settings RS-485 Connection Connect the PLC’s RS-485 terminals: + to converter +, – to converter –. On some Panasonic models, jumper terminal E to –. DIP-Switch Baud Rate Switch 1-4 Baud Data bits Stop bits Parity 1=ON 9600 8 1 None 2=ON 19200 8 1 Even 3=ON 38400 8 1 Odd 4=O...

Segment Tree for Range Minimum and Frequency Queries with Point Updates

Given an array of n integers and q operations, the task is to handle two types of requests efficiently: Update: Set the value at index x to d. Query: For a range [l, r], find the minimum value and count how many times it appears in that range. Data Structure Design We define a structure AggData to s...