Knapsack problem C++

Convenient for self review == 1.01 Backpack Problem Description: there are n valuable items and a backpack with a volume of v. there is one for each item. Calculate the maximum value of the items that the backpack can hold. Analysis process: 1. Describe the state: we use f [i] [j] to indicate that only the first I items are selected, and th ...

Added by adam119 on Sat, 26 Feb 2022 17:19:35 +0200

HTML learning notes

Form labels and form labels form Form creation What is a form Forms are used to collect information, such as registration, login, sending comments and feedback, purchasing goods, and so on Created form <form action="save.php" method="post"></form>Start with the < form > elementThe action attribute indicates the web ...

Added by grantf on Sat, 26 Feb 2022 17:14:07 +0200

Build K3s cluster step by step based on Rocky Linux

Introduction to K3SK3s is a lightweight Kubernetes distribution. It is an open source application for managing containerization on multiple hosts in the cloud platform. Because it is only half the size of Kubernetes in terms of memory occupation, it is abbreviated as k3s.In this article, I will show how to build K3S service cluster based on Roc ...

Added by mburkwit on Sat, 26 Feb 2022 17:09:01 +0200

[implementation of FTP cloud disk for linux small project]

Implementation of FTP cloud disk for linux small project preface In the past two days, I have reviewed the basic knowledge of linux (file IO operation, process, thread, network programming, interprocess communication) I learned before. Well, on the whole, I have a deeper understanding of the knowledge points than I learned for the first ...

Added by prometheos on Sat, 26 Feb 2022 17:00:05 +0200

[408 data structure] tree

The main reason for the tree is that there are too many application questions. (the algorithm problem has only been tested twice, which is very simple. It is a traversal; the algorithm problem is in the next article) Mind map Basic concepts Develop habits: distinguish between degrees and sum of degrees: Number of nodes = total degree + ...

Added by smokinjoe on Sat, 26 Feb 2022 16:57:20 +0200

Use of Java - jdbc

Chapter 1 JDBC overview Before that, we learned JavaSE and wrote Java programs. The data is stored in variables, arrays, sets, etc., which cannot be persisted. Later, we learned that IO streams can write data to files, but it is not convenient to manage data and maintain the relationship between data; Later, we learned the database manage ...

Added by dcro2 on Sat, 26 Feb 2022 16:47:26 +0200

vue3 learning record I

Current version 3.2.25, official website address https://v3.cn.vuejs.org/guide install Import the latest version in the form of CDN package for development and use <script src="https://unpkg.com/vue@next"></script> npm installation # Latest stable version $ npm install vue@next # Single file component compilation plug-in $ npm ...

Added by s.steele on Sat, 26 Feb 2022 16:24:58 +0200

[redis series] redis learning VI, redis transaction processing and monitoring transactions

[redis series] redis learning VI, redis transaction processing and monitoring transactionsWrite in frontThe transactions we have learned are atomic, but the execution of multiple instructions in redis transactions does not guarantee atomicityEssence of redis transactionIt is a set of commands. All commands in a transaction will be serialized. I ...

Added by thewabbit1 on Sat, 26 Feb 2022 16:22:44 +0200

js event loop details

In js event loop, we need to distinguish the environment, because javascript can run in node environment and browser environment. So we summarize js event cycle from these two aspects. 1, js thread in browser Is the browser a process? Is there only one thread in it? At present, most browsers are actually multi process. When we open a tab page ...

Added by saito on Sat, 26 Feb 2022 15:53:03 +0200

Front end table paging function

My idea 1. Request all data at one time, and then divide it into many parts to the front end for display (advantages: one-time request is completed without further request. Disadvantages: users may not need to use all data segments, and if the amount of data is large, the request is very slow, which greatly affects the user experience) 2 ...

Added by DaiWelsh on Sat, 26 Feb 2022 15:12:44 +0200