# Baeldung - CS

Learn all about Computer Science

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Sorting Algorithms Series

DevFeed: [Sorting Algorithms Series](<https://devfeed.tech/articles/sorting-algorithms-series-4512.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/952881908/0/baeldung/cs>)

Author: baeldung

Published: 2026-04-01T15:54:31Z

Content type: article

Language: en

Sources: [Baeldung - CS](<https://devfeed.tech/sources/baeldung-cs.md>)

Topics: [Sorting](<https://devfeed.tech/topics/sorting.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [computational complexity](<https://devfeed.tech/topics/computational-complexity.md>), [ordering](<https://devfeed.tech/topics/ordering.md>), [Computer science](<https://devfeed.tech/topics/computer-science.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [arrays](<https://devfeed.tech/tags/arrays.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [comparisons](<https://devfeed.tech/tags/comparisons.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [family](<https://devfeed.tech/tags/family.md>), [guide](<https://devfeed.tech/tags/guide.md>), [heapsort](<https://devfeed.tech/tags/heapsort.md>), [merge](<https://devfeed.tech/tags/merge.md>), [merge-sort](<https://devfeed.tech/tags/merge-sort.md>), [quicksort](<https://devfeed.tech/tags/quicksort.md>), [series](<https://devfeed.tech/tags/series.md>), [series-sorting](<https://devfeed.tech/tags/series-sorting.md>), [sort](<https://devfeed.tech/tags/sort.md>), [sorting](<https://devfeed.tech/tags/sorting.md>), [sorting-algorithms](<https://devfeed.tech/tags/sorting-algorithms.md>), [sorts](<https://devfeed.tech/tags/sorts.md>)

### AI overview

The guide surveys sorting algorithm families, from comparison-based methods such as merge sort, quicksort, and heapsort to adaptive and specialized non-comparison sorts. It frames algorithm choice around time complexity, stability, memory needs, and practical applicability, with examples of sorting large integer sets and merging already ordered arrays.

### Source excerpt

This guide covers the full spectrum of sorting: from foundational comparisons and merge sort to quicksort, heapsort, adaptive algorithms, and specialized non-comparison sorts. The post Sorting Algorithms Series first appeared on Baeldung on Computer Science. Related Stories Natural Language Processing (NLP) Series Cycle Sort Algorithm LaTeX Series

## How to Train ChatGPT on Custom Data: A RAG Application

DevFeed: [How to Train ChatGPT on Custom Data: A RAG Application](<https://devfeed.tech/articles/how-to-train-chatgpt-on-custom-data-a-rag-application-4511.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/923992304/0/baeldung/cs>)

Author: Alexander Molochko

Published: 2025-08-28T23:27:05Z

Content type: tutorial

Language: en

Sources: [Baeldung - CS](<https://devfeed.tech/sources/baeldung-cs.md>)

Topics: [ChatGPT](<https://devfeed.tech/topics/chatgpt.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [vector embeddings in AI](<https://devfeed.tech/topics/vector-embeddings-in-ai.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [Chat Bot](<https://devfeed.tech/topics/chatbot.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Spring AI](<https://devfeed.tech/topics/spring-ai.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-assistants](<https://devfeed.tech/tags/ai-assistants.md>), [api](<https://devfeed.tech/tags/api.md>), [api-key](<https://devfeed.tech/tags/api-key.md>), [bm25](<https://devfeed.tech/tags/bm25.md>), [chat](<https://devfeed.tech/tags/chat.md>), [chatbot](<https://devfeed.tech/tags/chatbot.md>), [chatbots](<https://devfeed.tech/tags/chatbots.md>), [chatgpt](<https://devfeed.tech/tags/chatgpt.md>), [cli](<https://devfeed.tech/tags/cli.md>), [client](<https://devfeed.tech/tags/client.md>), [code](<https://devfeed.tech/tags/code.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [custom](<https://devfeed.tech/tags/custom.md>), [data](<https://devfeed.tech/tags/data.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [deep-learning-chatgpt](<https://devfeed.tech/tags/deep-learning-chatgpt.md>), [langchain](<https://devfeed.tech/tags/langchain.md>), [model](<https://devfeed.tech/tags/model.md>), [rag](<https://devfeed.tech/tags/rag.md>), [text](<https://devfeed.tech/tags/text.md>)

### AI overview

The tutorial builds a Python support chatbot that answers from custom documents by retrieving relevant text at query time. It converts CSV records and extracted PDF text into overlapping chunks, embeds them with OpenAI's text-embedding-ada-002, and stores vectors in a FAISS index with source metadata. For each question, the chatbot embeds the query, retrieves the three nearest chunks, and adds them to a GPT-4-0613 prompt alongside conversation history. The example uses 1,000-character target chunks with 100-character overlap and notes that FAISS suits smaller datasets; it suggests persistent vector databases for larger or dynamically updated collections. It also describes hybrid BM25 retrieval, reranking, and query expansion as possible retrieval improvements.

### Source excerpt

Learn how to use ChatGPT's APIs in a RAG application. The post How to Train ChatGPT on Custom Data: A RAG Application first appeared on Baeldung on Computer Science. Related Stories The Mixture-of-Experts ML Approach Download a Hugging Face Model Different Text Summarization Techniques Using Langchain

## Types of VoIP Hacking and Countermeasures

DevFeed: [Types of VoIP Hacking and Countermeasures](<https://devfeed.tech/articles/types-of-voip-hacking-and-countermeasures-4510.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/923262890/0/baeldung/cs>)

Author: Georgios Nanos

Published: 2025-08-15T02:31:46Z

Content type: tutorial

Language: en

Sources: [Baeldung - CS](<https://devfeed.tech/sources/baeldung-cs.md>)

Topics: [Hacking](<https://devfeed.tech/topics/hacking.md>), [network security](<https://devfeed.tech/topics/network-security.md>), [Network](<https://devfeed.tech/topics/network.md>), [ai security](<https://devfeed.tech/topics/ai-security.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [hacking](<https://devfeed.tech/tags/hacking.md>), [network](<https://devfeed.tech/tags/network.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [protocol-security](<https://devfeed.tech/tags/protocol-security.md>), [security](<https://devfeed.tech/tags/security.md>), [security-attacks](<https://devfeed.tech/tags/security-attacks.md>), [security-security-attacks](<https://devfeed.tech/tags/security-security-attacks.md>), [technology](<https://devfeed.tech/tags/technology.md>), [voice](<https://devfeed.tech/tags/voice.md>), [voip](<https://devfeed.tech/tags/voip.md>)

### AI overview

VoIP systems face risks because voice and signaling travel as data over IP networks; without encryption and strong authentication, attackers can intercept calls, hijack SIP registrations, redirect calls, spoof caller ID, commit toll fraud, or disrupt service with SPIT and TDoS. The article recommends TLS for SIP signaling and SRTP for voice streams, strong credentials and MFA, role-based access and disabling unneeded features, STIR/SHAKEN and call filtering for caller ID protection, network segmentation, SIP-aware firewalls or SBCs, and ongoing monitoring and patching. It also notes AI can help flag anomalous calls and spam, while deepfake voices and phishing bots create new impersonation risks.

### Source excerpt

Learn about security attacks and measures regarding the Voice-over-IP technology. The post Types of VoIP Hacking and Countermeasures first appeared on Baeldung on Computer Science. Related Stories Introduction to Differential Privacy in Deep Learning Models What Is CSRF? Network Time Protocol: Security and Authentication

## Introduction to Differential Privacy in Deep Learning Models

DevFeed: [Introduction to Differential Privacy in Deep Learning Models](<https://devfeed.tech/articles/introduction-to-differential-privacy-in-deep-learning-models-4509.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/922186523/0/baeldung/cs>)

Author: Chizaram Nwachukwu

Published: 2025-07-25T16:07:28Z

Content type: article

Language: en

Sources: [Baeldung - CS](<https://devfeed.tech/sources/baeldung-cs.md>)

Topics: [Differential Privacy](<https://devfeed.tech/topics/differential-privacy.md>), [Deep learning](<https://devfeed.tech/topics/deep-learning.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [huggingface\_hub](<https://devfeed.tech/topics/huggingface-hub.md>), [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [Tensorflow](<https://devfeed.tech/topics/tensorflow.md>)

Tags: [algorithm](<https://devfeed.tech/tags/algorithm.md>), [clipping](<https://devfeed.tech/tags/clipping.md>), [data](<https://devfeed.tech/tags/data.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [differential-privacy](<https://devfeed.tech/tags/differential-privacy.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [machine-learning-security-attacks](<https://devfeed.tech/tags/machine-learning-security-attacks.md>), [models](<https://devfeed.tech/tags/models.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [security-attacks](<https://devfeed.tech/tags/security-attacks.md>)

### AI overview

Differential privacy aims to prevent a trained model's outputs from revealing whether one person's record was in its training data. It adds calibrated randomness so outputs change little when a record is added or removed; stronger privacy generally requires more noise and can reduce accuracy, while noise also adds computational overhead. In PATE, sensitive data is split into non-overlapping subsets for separate teacher models. Their votes on labels receive Laplace or Gaussian noise, and the noisy majority labels public, non-sensitive data used to train a student model that does not directly access the sensitive records. The excerpt also cites larger datasets, batch-size and gradient-clipping optimization, and transfer learning as ways to address implementation challenges, and names DP-SGD support in TensorFlow Privacy and PyTorch Opacus.

### Source excerpt

Learn to make secure machine-learning models using differential privacy and PATE. The post Introduction to Differential Privacy in Deep Learning Models first appeared on Baeldung on Computer Science. Related Stories Types of VoIP Hacking and Countermeasures What Is the Gradient Norm? What's the Difference Between 'transform' and 'fit_transform' in sklearn?

## How to Generate New Art From Existing Images Using Deep Learning?

DevFeed: [How to Generate New Art From Existing Images Using Deep Learning?](<https://devfeed.tech/articles/how-to-generate-new-art-from-existing-images-using-deep-learning-4508.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/922108034/0/baeldung/cs>)

Author: Damilare Keshinro

Published: 2025-07-24T04:56:41Z

Content type: tutorial

Language: en

Sources: [Baeldung - CS](<https://devfeed.tech/sources/baeldung-cs.md>)

Topics: [Deep neural networks](<https://devfeed.tech/topics/deep-neural-networks.md>), [Tensorflow](<https://devfeed.tech/topics/tensorflow.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Image](<https://devfeed.tech/topics/image.md>), [Computer science](<https://devfeed.tech/topics/computer-science.md>)

Tags: [building](<https://devfeed.tech/tags/building.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [computer-vision](<https://devfeed.tech/tags/computer-vision.md>), [computer-vision-image-processing](<https://devfeed.tech/tags/computer-vision-image-processing.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [generate](<https://devfeed.tech/tags/generate.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [image-processing](<https://devfeed.tech/tags/image-processing.md>), [images](<https://devfeed.tech/tags/images.md>), [model](<https://devfeed.tech/tags/model.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [tensorflow](<https://devfeed.tech/tags/tensorflow.md>)

### AI overview

A tutorial on neural style transfer using TensorFlow and a pretrained VGG16 model. It explains how to combine the content of an owl image with the artistic style of Edvard Munch's "Scream" by extracting features, defining losses, preprocessing images, and optimizing the result.

### Source excerpt

A walkthrough of building an art style transfer program using deep learning techniques and tools like TensorFlow and the VGG16 model. The post How to Generate New Art From Existing Images Using Deep Learning? first appeared on Baeldung on Computer Science.

## Conway's Game of Life

DevFeed: [Conway's Game of Life](<https://devfeed.tech/articles/conway-s-game-of-life-4506.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/921267023/0/baeldung/cs>)

Author: DrMax

Published: 2025-07-06T22:40:06Z

Content type: article

Language: en

Sources: [Baeldung - CS](<https://devfeed.tech/sources/baeldung-cs.md>)

Topics: [Cellular automaton](<https://devfeed.tech/topics/cellular-automaton.md>), [Computer science](<https://devfeed.tech/topics/computer-science.md>), [computational complexity](<https://devfeed.tech/topics/computational-complexity.md>)

Tags: [algorithms](<https://devfeed.tech/tags/algorithms.md>), [algorithms-complexity](<https://devfeed.tech/tags/algorithms-complexity.md>), [beacon](<https://devfeed.tech/tags/beacon.md>), [block](<https://devfeed.tech/tags/block.md>), [cells](<https://devfeed.tech/tags/cells.md>), [cellular](<https://devfeed.tech/tags/cellular.md>), [cellular-automata](<https://devfeed.tech/tags/cellular-automata.md>), [chaos](<https://devfeed.tech/tags/chaos.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [complexity-theory](<https://devfeed.tech/tags/complexity-theory.md>), [conway](<https://devfeed.tech/tags/conway.md>), [cycles](<https://devfeed.tech/tags/cycles.md>), [evolution](<https://devfeed.tech/tags/evolution.md>), [game](<https://devfeed.tech/tags/game.md>), [generation](<https://devfeed.tech/tags/generation.md>), [generator](<https://devfeed.tech/tags/generator.md>), [grid](<https://devfeed.tech/tags/grid.md>), [growth](<https://devfeed.tech/tags/growth.md>), [gun](<https://devfeed.tech/tags/gun.md>), [infinite](<https://devfeed.tech/tags/infinite.md>), [life](<https://devfeed.tech/tags/life.md>), [pattern](<https://devfeed.tech/tags/pattern.md>)

### AI overview

Conway's Game of Life applies four neighbor-count rules to a two-dimensional grid, producing behavior beyond the rules' simplicity. Live cells die with fewer than two or more than three live neighbors and otherwise survive; dead cells become alive with exactly three. The excerpt describes still lives that remain unchanged, oscillators that cycle, spaceships such as the Glider that move while repeating their shape, and guns that emit patterns at intervals. The Gosper Glider Gun releases a Glider every 30 generations; the text says such patterns demonstrate unbounded growth and, through interacting Gliders, contribute to the Game of Life's Turing completeness. It also highlights how local interactions and small changes in starting cells can shape global outcomes.

### Source excerpt

Learn about various pattern types in Conway's Game of Life. The post Conway's Game of Life first appeared on Baeldung on Computer Science. Related Stories How to Find the Complexity of an Algorithm Raft Consensus Algorithm Gale-Shapley Algorithm

## What Is Linting?

DevFeed: [What Is Linting?](<https://devfeed.tech/articles/what-is-linting-4505.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/921146306/0/baeldung/cs>)

Author: John Caleb

Published: 2025-07-04T04:23:28Z

Content type: tutorial

Language: en

Sources: [Baeldung - CS](<https://devfeed.tech/sources/baeldung-cs.md>)

Topics: [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>), [Code quality](<https://devfeed.tech/topics/code-quality.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [automated](<https://devfeed.tech/tags/automated.md>), [code-analysis](<https://devfeed.tech/tags/code-analysis.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [compilers-and-linkers](<https://devfeed.tech/tags/compilers-and-linkers.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [lint](<https://devfeed.tech/tags/lint.md>), [linter](<https://devfeed.tech/tags/linter.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-compilers-and-linkers](<https://devfeed.tech/tags/programming-compilers-and-linkers.md>), [quality-control](<https://devfeed.tech/tags/quality-control.md>), [readability](<https://devfeed.tech/tags/readability.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

### AI overview

This tutorial explains what linting is, why linters are useful in software development, and how they detect syntax, semantic, formatting, and coding-style problems. It describes parsing source code into an abstract syntax tree and applying rules to identify issues such as undefined variables and incorrect code usage.

### Source excerpt

Explore linters, tools for automated code analysis that can capture syntactic, semantic, and stylistic errors in code. The post What Is Linting? first appeared on Baeldung on Computer Science. Related Stories How to Start Building an Operating System Raft Consensus Algorithm What Is a Monad?

## How to Start Building an Operating System

DevFeed: [How to Start Building an Operating System](<https://devfeed.tech/articles/how-to-start-building-an-operating-system-4504.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/920733689/0/baeldung/cs>)

Author: Oscar Mauricio Forero Carrillo

Published: 2025-06-25T14:45:06Z

Content type: article

Language: en

Sources: [Baeldung - CS](<https://devfeed.tech/sources/baeldung-cs.md>)

Topics: [Operating system](<https://devfeed.tech/topics/operating-system.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>), [boot](<https://devfeed.tech/topics/boot.md>), [Emulator](<https://devfeed.tech/topics/emulator.md>), [memory handling](<https://devfeed.tech/topics/memory-handling.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [GRUB](<https://devfeed.tech/topics/grub.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>)

Tags: [all](<https://devfeed.tech/tags/all.md>), [apply](<https://devfeed.tech/tags/apply.md>), [based](<https://devfeed.tech/tags/based.md>), [building](<https://devfeed.tech/tags/building.md>), [computer](<https://devfeed.tech/tags/computer.md>), [concepts](<https://devfeed.tech/tags/concepts.md>), [development](<https://devfeed.tech/tags/development.md>), [explore](<https://devfeed.tech/tags/explore.md>), [first](<https://devfeed.tech/tags/first.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [languages](<https://devfeed.tech/tags/languages.md>), [learning](<https://devfeed.tech/tags/learning.md>), [machine](<https://devfeed.tech/tags/machine.md>), [operating-system](<https://devfeed.tech/tags/operating-system.md>), [os](<https://devfeed.tech/tags/os.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [resources](<https://devfeed.tech/tags/resources.md>), [system](<https://devfeed.tech/tags/system.md>), [with](<https://devfeed.tech/tags/with.md>)

### AI overview

Starting OS development is easier when you first choose a learning goal, then build and debug in an emulator. The article recommends QEMU for its speed, flexibility, and documentation, Bochs for detailed CPU debugging despite its slower performance and i386 limit, and VirtualBox for a user-friendly GUI. GRUB can simplify kernel loading, while QEMU with GDB supports stepping through code and inspecting memory and registers. Learning paths include Linux From Scratch for assembling a system from source; EGOS-2000 and Operating Systems: Three Easy Pieces for concepts and exercises; and language-specific projects such as C tutorials, a C++ kernel template, Rust examples, Zig's Zen, Nim's Fusion OS, and Go's gokrazy. C++ offers abstractions, type safety, and RAII, but features such as exceptions and dynamic allocation may need runtime support unavailable in low-level kernel code. The suggested approach combines theory with practical work booting, building, and debugging.

### Source excerpt

Examine resources that apply to all operating system development endeavors and explore learning paths based on specific operating system concepts and programming languages. The post How to Start Building an Operating System first appeared on Baeldung on Computer Science. Related Stories How to Make a Bare-Metal Program With UEFI (No OS Required) - Enclosure How to Make a Bare-Metal Program With UEFI (No OS Required) How Bootstrapping Works in Machine Learning