By Debby Nirwan Understand the underlying data structure of the map and compare it to a hash table. Photo by Fotis Fotopoulos on Unsplash In a previous post, I explained how hash table - std::unordered_map is implemented in C++. I also posted a follow-up article explaining how to measure element insertion, retrieval, and deletion performance to demonstrate and understand hash table behavior.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Debby Nirwan
C++ Basics: Understanding Lambda
One of the new features introduced in modern C++ starting from C++ 11 is the lambda expression. It is a convenient way to define an anonymous function object or functor. It is convenient because we can define it locally where we want to call it or pass it to a function as an argument. What Are C++ Lambda Expressions? C++ Lambda expressions are a convenient way to define an anonymous function object or functor in C++. It can improve readability when writing callback functions.
C++ Type Erasure: Wrapping Any Type
Photo by AltumCode on Unsplash We start with some basics about Generic Programming, Object Oriented Programming, and Duck Typing concepts to understand what problems this technique tries to solve. We’ll cover the details step-by-step at the end of this post. Generic Programming refers to a style of programming in which functions or algorithms are written to accept different types as opposed to a single type. In C++ you can achieve this with Templates.
C++ Memory Allocation/Deallocation for Data Processing
Photo by Possessed Photography on Unsplash Unless you are working on very resource-constrained embedded systems running RTOS or bare metal, you will almost certainly need to dynamically allocate memory to process your data. There are many methods to dynamically allocate memory in C++ such as using new and delete operators and their counterparts new[] and delete[], std::allocator, or C’s malloc(). Regardless of the method, the system has to allocate blocks of memory contiguously.
C++ Basics: Array Data Structure
C++ offers different types of arrays, understanding how they work internally will help us in choosing the right type for our application Photo by Fotis Fotopoulos on Unsplash One of the most important things, when we code in any programming language is to choose the right data structure to represent our data. This is important because we don’t want our application to slow down to the point of becoming a bottleneck or use a lot more memory than necessary when our application scales.
Particle Filter Localization with Webots and ROS2
One of the main problems that a mobile robot has to solve is knowing where it is located in its environment. This process of determining the location and orientation of the robot (robot pose) with respect to its environment is called localization. Without knowing where it is in its environment, there are very limited tasks a robot can perform. Therefore this is one of the most important problems for it to solve.
Occupancy Grid Mapping with Webots and ROS2
e-puck2 on Webots Simulator (Image by Author) One of the many tasks that an autonomous robot has to perform is mapping the environment. Having a map of the environment is important because many other tasks may depend on the map as a prerequisite. For some robots, the map is given as input but for many others that is not possible. The robot has to map the environment autonomously by exploring it.
C++ Basics: Understanding Object Model
When you start learning C++, the first thing you should understand is the Object Model. Everything else will start to make sense after you understand the Object Model. Photo by Arnold Francisca on Unsplash C++ can be hard to learn, especially if you come from high-level programming languages such as Python. It is very important to start your learning journey by understanding the fundamentals. One of them is to understand what an object is.
Total-order Forward Decomposition: An HTN Planner
Photo by Markus Winkler on Unsplash HTN (Hierarchical Task Network) Planning is another approach to solve AI Planning Problem. It is similar to the classical STRIPS-like planners in the way it represents the state of the world and executes actions to transform one state into another. However, it is entirely different in what it plans for and how it plans for it. In the classical planning approaches, the input is a set of goals and the algorithms search through possibilities to achieve the goals.
AI Planning using Constraint Satisfaction Problems
Using Constraint Satisfaction Problems to solve AI Planning Problems. Photo by Markus Winkler on Unsplash Just like AI Planning as Satisfiability, we can use an existing technique — Constraint Satisfaction Problems to help us solve AI Planning Problems. This way we can use the existing well-developed algorithms for solving CSPs to solve our AI Planning Problems.
Is F1 the appropriate criterion to use? What about F2, F3,…, F beta?
It is very common to use the F1 measure for binary classification. This is known as the Harmonic Mean. However, a more generic F_beta score criterion might better evaluate model performance. So, what about F2, F3, and F_beta? In this post, we will review the F measures. According to many data scientists, the most reliable model performance measure is accuracy. It is not only the definitive model metric, there are many others, too.
How I Implemented HFSM In Python
HFSM in Python (Image by Author) I wanted to use the HFSM (Hierarchical Finite State Machine) in my Pacman AI Agent Implementation to fully understand the concepts and to compare it with the Behavior Tree. In my experience, after reading books and papers of some technical topics, my comprehension of the topics would greatly improve if I implemented them in code.
Hierarchical Finite State Machine for AI Acting Engine
Learning the details of Hierarchical Finite State Machine (HFSM), how it solves issues found in Finite State Machine (FSM), and how it compares with Behavior Trees. Pacman HFSMs (Image by Author) Implementing an artificially intelligent agent such as a robot or a character in video games is becoming more complex as they require to have complex behaviors to carry out their tasks in dynamic environments.
Designing AI Agents’ Behaviors with Behavior Trees
Designing and Implementing Behaviors for AI Agents A Behavior Tree (Image by author) In our previous posts, we discussed about Planning and Acting. Both are for planning, one with a Descriptive Model and the other with an Operational Model of actions. Acting with Operational Model uses Refinement Methods to refine abstract tasks into subtasks or commands that can be executed by Execution Platform.
AI in 2019: A Year in Review
This year, in 2019, companies and governments ramped up the rollout of facial recognition — in public housing, in hiring, and in city streets. Some US airlines are now even using it instead of boarding passes, claiming it’s more convenient. There has also been wider use of affect recognition, a subset of facial recognition, which claims to ‘read’ our inner emotions by interpreting the micro-expressions on our face.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Debby
Contact Debby, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack