Analysis of the Shows
Analysis of the ShowsIn the first performance team, they began by taking suggestions from the audience, which added an element of fun. Based on these suggestions, they associated words to shape the first scene. One of the scenes that left a strong impression on me was about the PTA. Through the actors’ portrayal, I could sense very distinct character traits. The scene primarily involved a conversation between a mom wanting to fit into the PTA and a dad who was indifferent to it. In this scene, t ...
What I want to change
To Unmask Reality
What do I want to change?I aspire to draw closer to reality, which entails seeing things, people, and myself in a true light.
Previously, I often donned a “mask” in social interactions and while handling various matters. Sometimes, to protect my own psyche or to gain recognition, I’d cover my true self. For instance, when I deeply appreciate someone, I yearn for their recognition. However, this desire for approval could lead me to hide my true self, especially if I believe that ...
Exploring Flexibility and Improv Mindset in Life
Hi there 👋
Hello, I am Ivy Zou. My name originates from ‘I LOVE YOU,’ symbolizing my passion for peace and love in the world. I’m exploring various scenarios to integrate an improv attitude, fostering a rich, meaningful existence.
Exploring Flexibility and Improv Mindset in Life 🌿In an era where nearly everything can be planned, embracing an improv mindset can be a breath of fresh air, helping us better adapt to changes and uncertainties.
1. School: Balancing Framework and Freedom 📘Reflection ...
Yes And
Thoughts on the “Yes, And” Philosophy in Improv
“Yes, And” Philosophy: My PerspectiveThe “Yes, And” philosophy is rooted in acceptance and augmentation. Essentially, it’s about receiving what another performer offers and building upon it. This approach fosters an environment of collaboration and creativity.
I believe this philosophy is akin to a life approach where one remains open to possibilities, embraces them, and then adds value or meaning. Imagine if we approached everyday challenges with ...
Binary Search
Binary Search OverviewPain Points
Ambiguous Positioning: Traditional binary search might return any occurrence of the target value, which can be problematic when dealing with duplicate elements.
Edge Cases: Handling arrays with small sizes (e.g., 1 or 2) might require additional condition checks.
Infinite Loops: Incorrectly implemented conditions or updates for pointers might lead to infinite loops.
Solutions and Optimized Binary SearchAn optimized binary search algorithm ensures:
Always retur ...
MySQL Server Architecture?
Server LayerIncludes:
Connector: Responsible for establishing connections with the client, obtaining permissions, maintaining, and managing connections.
Query Cache: Used to temporarily store previously executed statements and their results.
Analyzer: Carries out lexical and syntactical analysis of the statement.
Optimizer: Determines how to execute queries efficiently.
Executor: Actually executes the SQL statements.
Storage Engine LayerResponsible for the storage and retrieval of data. It has ...
Thread-Safe Collection Classes
Thread-Safe Collection ClassesIn Java, various thread-safe collection classes are available to handle concurrent access to data structures. These classes ensure that multiple threads can safely manipulate data without causing race conditions or inconsistencies. Below are some categories of thread-safe collections:
Blocking CollectionsBlocking collections are based on locks and use blocking mechanisms to manage concurrent access. They provide synchronization through thread blocking and unblockin ...
Shared Model-Immutability
Shared Model-ImmutabilityImmutability DesignImmutability is a design principle where classes and their attributes are marked as final, ensuring that the attributes are read-only and cannot be modified.
Protective CopyProtective copying involves creating copy objects to prevent sharing. This technique safeguards the content of arrays from being altered by other classes.
Flyweight PatternThe Flyweight pattern emphasizes data sharing to minimize resource wastage. Instead of using protective copyin ...
Shared Model-Memory
Shared Model-MemoryJava Memory Model (JMM)
JMM, or Java Memory Model, defines the concepts of main memory and working memory. These correspond to CPU registers, caches, hardware memory, CPU instruction optimizations, and more.
JMM is reflected in the following aspects:
Atomicity: Ensures that instructions are not affected by thread context switches.
Visibility: Ensures that instructions are not affected by CPU caching.
Ordering: Ensures that instructions are not affected by CPU instruction par ...
Fibonacci
Understanding the Fibonacci SeriesThe Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones. It typically starts with:
0, 1, 1, 2, 3, 5, 8, 13, ...
The Basic Recursive ApproachThe classic recursive method for calculating Fibonacci numbers is:
FUNCTION Fibonacci(n):
IF n <= 1 THEN
RETURN n
END IF
RETURN Fibonacci(n-1) + Fibonacci(n-2)
This approach results in two recursive calls for each number, making it inefficient for larger ...