Python implementation of basic algorithm
What is computer science? ● first of all, it is clear that computer science is not only the research of computer. Although computer has played an important role in the process of scientific development, it is only a tool, a tool without soul. The so-called computer science is actually the research on problems, solving problems and solutions pro ...
Posted by EvilCoatHanger on Fri, 14 Jan 2022 05:13:06 +0100
[Java data structure and algorithm - sequence table 02 (stack)]
1. Stack
1.1 definition of stack
Stack is a linear table that is restricted to insert and delete operations only at the end of the table We call the end that allows insertion and deletion as the top of the stack and the other end naturally as the bottom of the stack; A stack without data elements is called an empty stack; The stack is cha ...
Posted by bahewitt on Fri, 14 Jan 2022 03:18:02 +0100
Analysis of an e-commerce App sign signature algorithm
1, Target
The input parameter of sign is encrypted, but it has two obvious characteristics: one is the end of = = and the other is the beginning of R4iSK.
With these two characteristics, we can start.
2, Steps
Start with Base64
==The approximate rate of the ending data is Base64. Let's Hook it first
// Base64
var Base64Class = Java.use( ...
Posted by mr_hacker on Fri, 14 Jan 2022 02:36:20 +0100
Quick sort (upgrade of bubble sort)
Quick sort
Quick sort is an improvement of bubble sort. Its basic idea is to divide the data to be sorted into two independent parts through one-time sorting. All the data in one part is smaller than all the data in the other part, and then quickly sort the two parts of data according to this method. The whole sorting process can be recursive, ...
Posted by Dark57 on Fri, 14 Jan 2022 00:08:06 +0100
Binary tree 19: two problems in Constructing Binary Tree
Today we are going to solve two problems of constructing binary trees;
106. Construct binary tree from middle order and post order traversal sequences
105. Construct binary tree from preorder and inorder traversal sequences
First remember a conclusion: a binary tree can be uniquely constructed according to the pre order and middle order, and ...
Posted by fred_m on Thu, 13 Jan 2022 23:34:22 +0100
Learning Java generics
Although I have written Java code for some time, I still can't figure it out and give up selectively as long as I see generics. However, I found that generics are used in many places when looking at the code of the company leaders today, so I'll sort out the generics I understand today.
What is generics
generic programming is a style or pa ...
Posted by kjtocool on Thu, 13 Jan 2022 21:28:22 +0100
Algorithm brush inscription I (double pointer)
leetcode official website: https://leetcode-cn.com/problems CS-Notes: https://www.cyc2018.xyz/
1. Sum of two II - input ordered array (7 / 21-167)
Problem solving ideas:
Using double pointers, one pointer points to an element with a smaller value and one pointer points to an element with a larger value. Pointers to smaller el ...
Posted by uproa on Thu, 13 Jan 2022 20:46:32 +0100
Part1__ Practical learning notes of machine learning__ KNN algorithm
step by step1. Introduction to the principle of kNN2. Handwriting dataset test3. Summary of advantages and disadvantages of the algorithm1, Introduction to the principle of kNN1.1 algorithm overviewGiven a training dataset, for a new input instance, find the K instances closest to the instance in the training dataset (that is, the K neighbors m ...
Posted by Osorene on Thu, 13 Jan 2022 19:56:50 +0100
[data structure and algorithm] JavaScript data structure and algorithm reading notes
1. Introduction to JavaScript
2. ECMAScript and TypeScript overview
2.2.7 object oriented programming using classes
class Book {
constructor(title, pages, isbn) {
this.title = title
this.pages = pages
this.isbn = isbn
}
printTitle() {
console.log(this.title)
}
}
let book = new Book('title', 'p ...
Posted by angershallreign on Thu, 13 Jan 2022 16:09:07 +0100
Intelligent optimization algorithm -- genetic algorithm [1]
catalogue
1 Introduction
2 Genetic Algorithm
2.1 basic concepts of genetic algorithm
2.2 characteristics of genetic algorithm
2.3 program block diagram
3 Python code implementation
3.1 source code implementation
3.2 genetic algorithm package sko GA
3.2.1 case 1
3.2.2 case 2
4 reference
1 Introduction
Genetic algorithm (GA ...
Posted by thebusinesslad on Thu, 13 Jan 2022 15:58:40 +0100