Data structure - data compression algorithm based on Huffman tree

Refer to Yan Weimin's textbook < data structure > > 2nd Edition describe Input a string of strings, build corresponding Huffman tree according to the frequency of characters in the given string, and construct Huffman coding table. On this basis, the compressed file can be compressed (i.e. enc ...

Added by oliverw92 on Sat, 20 Jun 2020 09:36:28 +0300

java Basics - day09_ Byte stream, character stream

Article catalog 02_IO overview (concept & classification) 03_ Everything is byte 04_ Byte output stream_ OutputStream class & introduction to fileoutputstream class 05_ Byte output stream writes data to file 06_ The principle of file storage and notepad opening 07_ The method of writing multi ...

Added by jiggaman15dg on Sun, 14 Jun 2020 07:51:46 +0300

vue upload image to base64, binary array, save encoded data to file

functional requirement 1. Picture to base64 2.base 64 to binary array 3. Save binary data to file and download to local resolvent Question 1: reference material vue element upload picture to base64 Specific code getBase64(file) { return new Promise(function (resolve, reject) { let reader = new FileReader(); let imgResu ...

Added by error_22 on Fri, 29 May 2020 17:49:11 +0300

java introduction | eight basic types

1. Foundation type 1.1 INTRODUCTION 1.2 exercise 1: test maximum and minimum Create a Basic project Create cn.qile.basic package Create test1 scope.java package cn.qile.basic; //This class is used to test the value range public class Test1_Scope { public static void main(String[] args) { //Test integer data range byte short int lo ...

Added by Ayon on Fri, 15 May 2020 18:28:07 +0300

Reptile small case: suitable for Python zero foundation, reptile data collection interested students!

Preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. When I was a child, I always had 100000 questions about why. Today, I take you to climb a quest ...

Added by javamint on Wed, 06 May 2020 10:44:25 +0300

Java String Source Analysis

String Source Analysis Class structure public final class String implements java.io.Serializable, Comparable<String>, CharSequence String class implements that Serializable can be serialized String class implements Comparable for comparison The String class implements that CharSequence can operate on Subscripts String classes are d ...

Added by jarv on Mon, 27 Apr 2020 20:35:10 +0300

Send by Python email, novice must learn

You may have found this tutorial because you want to send email using Python. Maybe you want to write a code to receive email reminders, send a confirmation email to users when they create an account, or send an email to organization members to remind them to pay their dues. Sending mail is a time-consuming and error prone task, but it can be ...

Added by amwd07 on Sun, 26 Apr 2020 10:14:56 +0300

Python learning - string manipulation

Common operations of strings include but are not limited to the following: String replacement, deletion, interception, copy, connection, comparison, search, segmentation, etc 1 #capitalize: String initial uppercase: capitalize-Capitalize the first letter of the string and lowercase other letters 2 name = 'swhthaitun' 3 name.capitalize() 4 pr ...

Added by TheCase on Mon, 06 Apr 2020 00:19:46 +0300

bash-shell Advanced Programming--Operators and Related Topics

Operators and related topics Operator assignment Assigning, initializing, or modifying the value of a variable = A general assignment operator that can be used for arithmetic and string assignments. var=12 car=bmw # Cannot have a blank character after the = sign Don't confuse = assignment operator with = test operator ...

Added by killerz on Wed, 01 Apr 2020 09:34:59 +0300

Practice the real knowledge - Scratch integrated ip agent (take Abu cloud as an example)

I. Preface There is a project that needs to crawl the Securities Association, and the other party has ip shielding. So I need to realize the ip automatic switch in the scratch to complete the crawling task. Before that, I have used the third-party library, namely, scrapy proxys plus the proxy api interface of sesame ip. Maybe the previous code ...

Added by Greaser9780 on Tue, 31 Mar 2020 17:23:54 +0300