Backtracking 4: Deduplication, another way of writing, rearranging the itinerary, N queens, solving Sudoku

18. Another way to write backtracking problem deduplication If it is repeated under the same parent node, the subset problem must be sorted. You can use set to deduplicate this layer. If it is reloaded from the parent node in this layer, the used array should be written in backtracking, and the backtracking is preceded […]

Ordinary users in Linux cannot use the sudo command

Linux directory structure /bin: bin is the abbreviation of Binaries (binary files), this directory stores the most frequently used commands. /boot: Here are some core files used when starting Linux, including some connection files and mirror files. /dev :dev is the abbreviation of Device (device). This directory stores the external devices of Linux. The way […]

61. Use sudo to achieve authorization

sudo introduction sudo: superuser do, that is, execute with a super user, the configuration file is /etc/sudoers; sudo needs to enter the user password, and there is no need to enter the password again within 5 minutes after entering sudo features: 1. Able to authorize specified users to run certain commands on specified hosts 2. […]

linux—“user operation/su and sudo/normal authority/special authority/decompression compression/software management, rpm and yum/source code installation nginx

User actions ####Create User### #1 Create sa and sutdents groups group add sa group add students # 2 Users can belong to multiple groups, only one primary group, and additional groups can have multiple G useradd -u 5001 -g students -G sa -c “Notes” -s /bin/bash lqz666 # 3 Set password passwd lqz666 # 4 […]

After the sudo apt update command W: An error occurred while verifying the digital signature. This repository has not been updated, so the previous index file is still used. GPG error: http://robotpkg.openrobots.org/packages

yan@RO:/etc/apt/sources.list.d$ sudo apt update Get: 1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Hits: 2 http://packages.ros.org/ros/ubuntu focal InRelease Hits: 3 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease Hits: 4 http://cn.archive.ubuntu.com/ubuntu focal InRelease Hits: 5 http://cn.archive.ubuntu.com/ubuntu focal-updates InRelease Hits: 6 https://deb.nodesource.com/node_16.x focal InRelease Get: 7 http://cn.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Ignore:8 http://robotpkg.openrobots.org/packages/debian/pub focal InRelease Hits: 9 http://robotpkg.openrobots.org/packages/debian/pub focal Release Error: 10 http://robotpkg.openrobots.org/packages/debian/pub […]

Sudoku (16*16) DFS pruning optimization solution

DFS special collection: DFS Connectivity Model DFS pruning and optimization It is said that filling Sudoku with DLX is the fastest, I don’t know DLX, so I use DFS and optimize infinitely. Only some optimization operations are described here. One: Optimization order: With 9*9 Sudoku, we find the lattice point that can be filled with […]

sudo pip3 –no-cache-dir install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/

[ 97%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/trackerKCF.cpp.o [ 97%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/trackerMIL_legacy.cpp.o [ 97%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/trackerMedianFlow.cpp.o [ 97%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/trackerSampler.cpp.o [ 97%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/trackerSamplerAlgorithm.cpp.o [ 97%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/trackerStateEstimator.cpp.o [ 97%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/tracking_by_matching.cpp.o [ 98%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/tracking_utils.cpp.o [ 98%] Building CXX object modules/tracking/CMakeFiles/opencv_tracking.dir/src/unscented_kalman.cpp.o [ […]