< C++ Primer > learning notes Chapter 2 variables and basic types

Write in front The second chapter is written in two parts. The main reason is that the concepts of const and user-defined data structure are very complex and difficult to understand. In particular, the user-defined data structure in the book is closely linked to the class in Chapter 7, so I want to write in more detail. const qualifier After ...

Posted by IWS on Tue, 30 Nov 2021 19:18:17 -0800

2021SC@SDUSC PALISADE open source library CKKS code analysis Advanced Code steps

2021SC@SDUSC catalogue introduce General steps 1. Enable TIC-TOC timing measurement 2. Define the functions and methods to be used 3. "EXACTRESCALE" and "APPROXRESCALE" 4.HYBRID switching technology 5. Zoom operation 6. Manual readjustment demonstration introduce         &n ...

Posted by CFennell on Tue, 30 Nov 2021 16:18:26 -0800

Expression evaluation based on binary tree (C + +, detailed idea)

describe Enter an expression (the numbers in the expression are positive integers less than 10), use a binary tree to represent the expression, create an expression tree, and then use the traversal operation of the binary tree to find the value of the expression. input Multiple sets of data. Each row ...

Posted by tejama on Tue, 30 Nov 2021 14:23:22 -0800

Dynamic programming -- Digital triangle model

1, Foreword AcWing algorithm improves the content of the course. This paper explains dynamic programming lesson 1: mathematical triangle model This article includes the following topics: AcWing 1015. Picking flowers AcWing 1018. Minimum toll AcWing 1027. Grid access AcWing 275. Pass note Where are the imperfections or expression errors ...

Posted by xsgatour on Tue, 30 Nov 2021 13:46:42 -0800

Summary of interview high frequency ~ single linked list OJ questions

1. Force buckle 141: ring linked list Give you a head node of the linked list to judge whether there are links in the linked list. If there is a node in the linked list that can be reached again by continuously tracking the next pointer, there is a ring in the linked list. In order to represent the rings in a given linked list, the eval ...

Posted by Lateuk on Tue, 30 Nov 2021 13:11:01 -0800

Automatic type derivation

[From] Author: Su Fang Links: https://subingwen.cn/cpp/autotype/ Source: Big C who likes programming Many new features have been added to C++11, such as the ability to use auto to automatically derive the type of variable and the ability to combine decltype to represent the return value of a function. Using new features allows us to write simpl ...

Posted by atwyman on Tue, 30 Nov 2021 11:53:54 -0800

[data structure] dynamic sequence table

1, Data structure Preface 1. Data structure: data and organization between data 2. Program (data and function composition) = data structure + algorithm 3. Time complexity Concept: the number of execution times of a statement of an algorithm program (rather than the running time of the algorithm); Time complexity is a function T ...

Posted by Goat on Tue, 30 Nov 2021 08:11:27 -0800

Overview of Chapter 1 of data structure C + + language description

1, Overview We regard each data structure as an abstract data type. It not only defines the organization of data, but also gives the operations to process data. In C + + language, classes are used to represent abstract data types, and objects are used to store and process data in specific applications. The creation of C + + classes is the ba ...

Posted by Joel.DNSVault on Tue, 30 Nov 2021 06:37:18 -0800

Experimental instruction for data structure and algorithm R (2020)

preface: LPT inner roll: Brush questions every day Experiment 1 linear table 1. Let the data elements in sequence table A increase in order, try to write A program to insert x into the appropriate position of the sequence table so that the table is still orderly. #include<stdio.h> #include<stdlib.h> #define LIST_INIT_SIZE 100 ...

Posted by sgtpepper on Tue, 30 Nov 2021 05:01:39 -0800

[STL source code analysis] summary notes (9): set/multiset and map/multimap

00 in front [STL source code analysis] summary note (8): Exploration of red black tree The content of this article is much simpler on the basis of red and black trees. set and map need to understand their structures. It's best to use them easily in the actual process of using STL. Because the red black tree is used as the bottom layer, it sho ...

Posted by beboni on Tue, 30 Nov 2021 04:20:47 -0800