StudentsEducators

Persistent Segment Tree

A Persistent Segment Tree is a data structure that allows for efficient querying and updating of segments within an array while preserving the history of changes. Unlike a traditional segment tree, which only maintains a single state, a persistent segment tree enables you to retain previous versions of the tree after updates. This is achieved by creating new nodes for modified segments while keeping unmodified nodes shared between versions, leading to a space-efficient structure.

The main operations include:

  • Querying: You can retrieve the sum or minimum value over a range in O(log⁡n)O(\log n)O(logn) time.
  • Updating: Each update operation takes O(log⁡n)O(\log n)O(logn) time, but instead of altering the original tree, it generates a new version of the tree that reflects the change.

This data structure is especially useful in scenarios where you need to maintain a history of changes, such as in version control systems or in applications where rollback functionality is required.

Other related terms

contact us

Let's get started

Start your personalized study experience with acemate today. Sign up for free and find summaries and mock exams for your university.

logoTurn your courses into an interactive learning experience.
Antong Yin

Antong Yin

Co-Founder & CEO

Jan Tiegges

Jan Tiegges

Co-Founder & CTO

Paul Herman

Paul Herman

Co-Founder & CPO

© 2025 acemate UG (haftungsbeschränkt)  |   Terms and Conditions  |   Privacy Policy  |   Imprint  |   Careers   |  
iconlogo
Log in

Kelvin–Stokes theorem

Stokes' Theorem is a fundamental result in vector calculus that relates surface integrals of vector fields over a surface to line integrals over the boundary of that surface. Specifically, it states that if F\mathbf{F}F is a vector field that is continuously differentiable on a surface SSS bounded by a simple, closed curve CCC, then the theorem can be expressed mathematically as:

∬S(∇×F)⋅dS=∮CF⋅dr\iint_S (\nabla \times \mathbf{F}) \cdot d\mathbf{S} = \oint_C \mathbf{F} \cdot d\mathbf{r}∬S​(∇×F)⋅dS=∮C​F⋅dr

In this equation, ∇×F\nabla \times \mathbf{F}∇×F represents the curl of the vector field, dSd\mathbf{S}dS is a vector representing an infinitesimal area on the surface SSS, and drd\mathbf{r}dr is a differential element of the curve CCC. Essentially, Stokes' Theorem provides a powerful tool for converting complex surface integrals into simpler line integrals, facilitating the computation of various physical problems, such as fluid flow and electromagnetism. This theorem highlights the deep connection between the topology of surfaces and the behavior of vector fields in three-dimensional space.

Hawking Evaporation

Hawking Evaporation is a theoretical process proposed by physicist Stephen Hawking in 1974, which describes how black holes can lose mass and eventually evaporate over time. This phenomenon arises from the principles of quantum mechanics and general relativity, particularly near the event horizon of a black hole. According to quantum theory, particle-antiparticle pairs can spontaneously form in empty space; when this occurs near the event horizon, one particle may fall into the black hole while the other escapes. The escaping particle is detected as radiation, now known as Hawking radiation, leading to a gradual decrease in the black hole's mass.

The rate of this mass loss is inversely proportional to the mass of the black hole, meaning smaller black holes evaporate faster than larger ones. Over astronomical timescales, this process could result in the complete evaporation of black holes, potentially leaving behind only a remnant of their initial mass. Hawking Evaporation raises profound questions about the nature of information and the fate of matter in the universe, contributing to ongoing debates in theoretical physics.

Heap Allocation

Heap allocation is a memory management technique used in programming to dynamically allocate memory at runtime. Unlike stack allocation, where memory is allocated in a last-in, first-out manner, heap allocation allows for more flexible memory usage, as it can allocate large blocks of memory that may not be contiguous. When a program requests memory from the heap, it uses functions like malloc in C or new in C++, which return a pointer to the allocated memory block. This block remains allocated until it is explicitly freed by the programmer using functions like free in C or delete in C++. However, improper management of heap memory can lead to issues such as memory leaks, where allocated memory is not released, causing the program to consume more resources over time. Thus, it is crucial to ensure that every allocation has a corresponding deallocation to maintain optimal performance and resource utilization.

Jevons Paradox

Jevons Paradox, benannt nach dem britischen Ökonomen William Stanley Jevons, beschreibt das Phänomen, dass eine Verbesserung der Energieeffizienz nicht notwendigerweise zu einer Reduzierung des Gesamtverbrauchs von Energie führt. Stattdessen kann eine effizientere Nutzung von Ressourcen zu einem Anstieg des Verbrauchs führen, weil die gesunkenen Kosten für die Nutzung einer Ressource (wie z.B. Energie) oft zu einer höheren Nachfrage und damit zu einem erhöhten Gesamtverbrauch führen. Dies geschieht, weil effizientere Technologien oft die Nutzung einer Ressource attraktiver machen, was zu einer Erhöhung der Nutzung führen kann, selbst wenn die Ressourcennutzung pro Einheit sinkt.

Beispielsweise könnte ein neues, effizienteres Auto weniger Benzin pro Kilometer verbrauchen, was die Kosten für das Fahren senkt. Dies könnte dazu führen, dass die Menschen mehr fahren, was letztlich den Gesamtverbrauch an Benzin erhöht. Das Paradox verdeutlicht die Notwendigkeit, sowohl die Effizienz als auch die Gesamtstrategie zur Ressourcennutzung zu betrachten, um echte Einsparungen und Umweltschutz zu erreichen.

Resistive Ram

Resistive RAM (ReRAM oder RRAM) is a type of non-volatile memory that stores data by changing the resistance across a dielectric solid-state material. Unlike traditional memory technologies such as DRAM or flash, ReRAM operates by applying a voltage to induce a resistance change, which can represent binary states (0 and 1). This process is often referred to as resistive switching.

One of the key advantages of ReRAM is its potential for high speed and low power consumption, making it suitable for applications in next-generation computing, including neuromorphic computing and data-intensive applications. Additionally, ReRAM can offer high endurance and scalability, as it can be fabricated using standard semiconductor processes. Overall, ReRAM is seen as a promising candidate for future memory technologies due to its unique properties and capabilities.

Baryogenesis Mechanisms

Baryogenesis refers to the theoretical processes that produced the observed imbalance between baryons (particles such as protons and neutrons) and antibaryons in the universe, which is essential for the existence of matter as we know it. Several mechanisms have been proposed to explain this phenomenon, notably Sakharov's conditions, which include baryon number violation, C and CP violation, and out-of-equilibrium conditions.

One prominent mechanism is electroweak baryogenesis, which occurs in the early universe during the electroweak phase transition, where the Higgs field acquires a non-zero vacuum expectation value. This process can lead to a preferential production of baryons over antibaryons due to the asymmetries created by the dynamics of the phase transition. Other mechanisms, such as affective baryogenesis and GUT (Grand Unified Theory) baryogenesis, involve more complex interactions and symmetries at higher energy scales, predicting distinct signatures that could be observed in future experiments. Understanding baryogenesis is vital for explaining why the universe is composed predominantly of matter rather than antimatter.