Language Selection

English French German Italian Portuguese Spanish

Yet Another Sudoku Puzzle Solver Using AWK

Filed under
Software

awk is a superb language for testing algorithms and applications with some complexity, especially where the problem can be broken into chunks which can streamed as part of a pipe. It’s an ideal tool for augmenting the features of shell programming as it is ubiquitous; found in some form on almost all Unix/Linux/BSD systems. Many problems dealing with text, log lines or symbol tables are handily solved or at the very least prototyped with awk along with the other tools found on Unix/Linux systems.

While awk lends itself well to operating on input a line at a time, processing and then sending some output for each line, it may also be used in a more traditional batching-style application where it reads all the input, processes and then sends the processed output onward.

Yet Another Sudoku Puzzle Solver – YASPS for Awk

The application I chose to use as an example is “yet another sudoku puzzle solver”.

rest here




More in Tux Machines

The Best Linux Laptop: A Buyer’s Guide with Picks from an RHCE

If you don’t posses the right knowledge & the experience, then finding the best Linux laptop can be a daunting task. And thus you can easily end-up with something that looks great, features great performance, but struggles to cope with ‘Linux’, shame! So, as a RedHat Certified Engineer, the author & the webmaster of this blog, and as a ‘Linux’ user with 14+ years of experience, I used all my knowledge to recommend to you a couple of laptops that I personally guarantee will let you run ‘Linux’ with ease. After 20+ hours of research (carefully looking through the hardware details & reading user feedback) I chose Dell XP S9360-3591-SLV, at the top of the line. If you want a laptop that’s equipped with modern features & excellent performance that ‘just works’ with Linux, then this is your best pick. It’s well built (aluminium chassis), lightweight (2.7 lb), features powerful hardware, long battery life, includes an excellent 13.3 inch Gorilla Glass touchscreen with 3200×1800 QHD resolution which should give you excellently sharp images without making anything too small & difficult to read, a good & roomy track-pad (earlier versions had a few issues with it, but now they seem to be gone) with rubber-like palm rest area and a good keyboard (the key travel is not deep, but it’s a very think laptop so…) with Backlit, two USB 3.0 ports. Most importantly, two of the most common elements of a laptop that can give ‘Linux’ user a headache, the wireless adapter & the GPU (yes the Intel HD Graphics 620 can play 4K videos at 60fps), they are both super compatible with ‘Linux’ on this Dell. Read more

today's howtos

Ubuntu-Based ExTiX "The Ultimate Linux System" Now Includes Calamares Installer

ExTiX 18.0 Deepin 171208 is the latest build of the distro, and it includes the recently released Deepin 15.5 Desktop, the Calamares 3.1.9 universal installer framework, which replaces the old Refracta Installer, as well as Refracta Tools, which lets users create their own live ISO images based on ExTiX or Ubuntu. "I’ve released a new version of ExTIX 18.0 Deepin today with Calamares 3.1.9 installed from source," said Arne Exton in the release announcement. "While running ExTiX Deepin 18.0 live or from hard drive you can use Refracta Tools (pre-installed) to create your own live installable Ubuntu system. A ten-year child can do it!" Read more

Manjaro Linux - One Of The Finest Linux Distros

I must say I am quite impressed with the latest iteration of Manjaro. The experience is fluid and smooth, fast and clean and it is very organized. I even found the experience on the Deepin edition better than on the Deepin distro. Manjaro clearly signifies why Arch-based distros that take them away out of the installation are becoming so popular. A simple installation process, access to Arch based features such as AUR and added to the fact that it is a rolling-based distro makes it a winner for me. I also love that all the major desktop environments are available on Manjaro allowing users to choose what they want. If you were on the fence about Manjaro, I believe it's viable as your working desktop and it is definitely worth checking out. Thanks for reading and share your thoughts and comments with us. Read more