Tag

greedy algorithm

0 views collected around this technical thread.

IT Services Circle
IT Services Circle
Mar 25, 2024 · Fundamentals

Greedy Interval Algorithm for Memory Allocation

The article explains a greedy interval‑based memory allocation problem, describes how to detect overlapping intervals, locate the smallest suitable free block within a 100‑byte heap, and provides a complete Python implementation that reads intervals, checks validity, and outputs the optimal allocation address.

Memory Allocationalgorithmic problemgreedy algorithm
0 likes · 6 min read
Greedy Interval Algorithm for Memory Allocation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 7, 2021 · Fundamentals

Greedy Algorithm for the Knapsack Problem with Java Implementation

This article explains the greedy approach to the knapsack problem, demonstrates how to compute item value‑to‑weight ratios, selects items based on those ratios, shows a complete Java example, and discusses why the greedy method may not always yield the optimal solution.

AlgorithmJavaOptimization
0 likes · 5 min read
Greedy Algorithm for the Knapsack Problem with Java Implementation
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 13, 2020 · Fundamentals

Maximum Number of Bottles You Can Drink Using a Greedy Algorithm

This article explains a promotional bottle‑exchange problem, presents example inputs and outputs, and demonstrates two greedy‑algorithm implementations in Java that compute the maximum number of bottles one can drink when empty bottles can be exchanged for new ones.

AlgorithmLeetCodegreedy algorithm
0 likes · 6 min read
Maximum Number of Bottles You Can Drink Using a Greedy Algorithm
DataFunTalk
DataFunTalk
Jul 3, 2019 · Artificial Intelligence

Improving Recommendation Diversity with Determinantal Point Processes and Greedy Optimization

The article explains how recommendation systems balance exploitation and exploration, introduces diversity metrics such as temporal, spatial, and coverage, and presents a determinantal point process (DPP) based algorithm accelerated by Cholesky decomposition and greedy inference, demonstrating significant speedups and improved relevance‑diversity trade‑offs in experiments.

OptimizationRecommendation systemscholesky decomposition
0 likes · 10 min read
Improving Recommendation Diversity with Determinantal Point Processes and Greedy Optimization
Qunar Tech Salon
Qunar Tech Salon
May 16, 2016 · Artificial Intelligence

Improving A/B Testing with a 20‑Line Multi‑Armed Bandit Algorithm

This article explains how a simple 20‑line multi‑armed bandit implementation can replace traditional A/B testing by continuously balancing exploration and exploitation to automatically discover the most effective UI variant, reducing manual analysis and improving conversion rates.

A/B testingMulti-armed banditexploitation
0 likes · 8 min read
Improving A/B Testing with a 20‑Line Multi‑Armed Bandit Algorithm
Qunar Tech Salon
Qunar Tech Salon
Apr 4, 2015 · Fundamentals

Greedy Algorithm: Concepts, Basic Approach, Applicability, and Example Analysis

This article explains the fundamental concepts of greedy algorithms, outlines their basic design steps, discusses the conditions under which they yield optimal solutions, presents an implementation framework, and analyzes a knapsack problem example that illustrates common greedy strategies and their limitations.

algorithm analysisgreedy algorithmknapsack problem
0 likes · 6 min read
Greedy Algorithm: Concepts, Basic Approach, Applicability, and Example Analysis